CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Install OpenFOAM-2.1.1 on Fedora 17 (https://www.cfd-online.com/Forums/openfoam-installation/105792-install-openfoam-2-1-1-fedora-17-a.html)

dark lancer August 11, 2012 06:52

Quote:

[hadi@hadi ~]$ cd OpenFOAM
[hadi@hadi OpenFOAM]$ module load openmpi-i386
[hadi@hadi OpenFOAM]$ source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=7 WM_MPLIB=SYSTEMOPENMPI
[hadi@hadi OpenFOAM]$ module load openmpi-i386
[hadi@hadi OpenFOAM]$ echo "module load openmpi-i386" >> $HOME/.bashrc
[hadi@hadi OpenFOAM]$ echo "source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc
[hadi@hadi OpenFOAM]$ cd OpenFOAM-2.1.1
[hadi@hadi OpenFOAM-2.1.1]$ ./Allwmake > make.log 2>&1
[hadi@hadi OpenFOAM-2.1.1]$ ./Allwmake > make.log 2>&1
[hadi@hadi OpenFOAM-2.1.1]$
successfuly run the ''./Allwmake > make.log 2>&1''
now what should I do for editing the make.log?

wyldckat August 11, 2012 08:57

Hi Hadi,

I guess the easiest is to run the commands as explained in the official instructions - start reading from the section "Getting Started": http://www.openfoam.org/download/source.php#x6-37000

A quick test is to run:
Code:

icoFoam -help
If there is no error, then you're ready to go.

Oh, as for ParaView, simply follow the instructions starting from section "Compiling Paraview 3.12.0 and the PV3FoamReader Module": http://www.openfoam.org/download/source.php#x6-35000

Best regards,
Bruno

dark lancer August 11, 2012 10:06

I'm so stupid, so I really do apologize to you for tacking your time.

when I run this order I see this error:
Quote:

[hadi@hadi OpenFOAM-2.1.1]$ cd $WM_THIRD_PARTY_DIR
[hadi@hadi ThirdParty-2.1.1]$ ./makeParaView
*** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH
I pack the ''make.log'' but I do not understand Where do I attach?

wyldckat August 11, 2012 10:51

Hi Hadi,

I didn't test this myself before... anyway, as root run:
Code:

yum install cmake
As normal user, makeParaView has to be executed like this:
Code:

./makeParaView -qmake $(which qmake-qt4)
Best regards,
Bruno

dark lancer August 11, 2012 11:32

hi Bruno

Quote:

[hadi@hadi PV3Readers]$ wmSET
[hadi@hadi PV3Readers]$ ./Allwclean
+ wclean libso vtkPV3Readers
wclean vtkPV3Readers
+ PV3blockMeshReader/Allwclean
+ rm -f '/home/hadi/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libPV3blockMeshReader*'
+ rm -rf PV3blockMeshReader/Make
+ wclean libso vtkPV3blockMesh
wclean vtkPV3blockMesh
+ PV3FoamReader/Allwclean
+ rm -f '/home/hadi/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libPV3FoamReader*'
+ rm -rf PV3FoamReader/Make
+ wclean libso vtkPV3Foam
wclean vtkPV3Foam
Quote:

[hadi@hadi PV3Readers]$ ./Allwmake 2>&1 | tee log_Allwmake
+ '[' -d /home/hadi/OpenFOAM/ThirdParty-2.1.1/platforms/linuxGcc/paraview-3.12.0 -a -r /home/hadi/OpenFOAM/ThirdParty-2.1.1/platforms/linuxGcc/paraview-3.12.0 ']'
when I run the cavity example in this order I see this error
Quote:

[hadi@hadi cavity]$ paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

[hadi@hadi cavity]$

wyldckat August 11, 2012 11:48

Hi Hadi,

edit: I forgot to mention: start a new terminal and do these steps in this new terminal.

I'm testing this as well and found out that ParaView won't build properly without some more help. Run these commands:
Code:

cd $WM_THIRD_PARTY_DIR
sed -i -e 's/ClearAndSelect = Clear | Select/ClearAndSelect = static_cast<int>(Clear) | static_cast<int>(Select)/' ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h
./makeParaView -qmake $(which qmake-qt4) -no-config

If there is not error message at the end, run:
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
wmSET $FOAM_SETTINGS
./Allwclean
./Allwmake

Best regards,
Bruno

PS: created wiki page where this is now documented: http://openfoamwiki.net/index.php/In...M-2.1.1/Fedora

dark lancer August 11, 2012 12:35

I thank you very much and hope that one day I can repay the favor you.
I wish the best for you.
thanks and thanks very much

wyldckat August 11, 2012 12:55

You're welcome! Have fun using OpenFOAM ;)
And don't forget: details are reaaaally important when it comes to using OpenFOAM ;)

linyanx August 19, 2016 11:42

Quote:

Originally Posted by dark lancer (Post 376504)
this is results:
I copy the files of openfoam and thirdparty after ''cd openfoam'' because Idownload it and then unpack

Same question I've faced. Currently struggling for that.

wyldckat August 20, 2016 17:49

Quote:

Originally Posted by linyanx (Post 614697)
Same question I've faced. Currently struggling for that.

Please provide more details, namely:
  1. Which Linux Distribution are you using?
  2. Which installation instructions are you following?
  3. At which step of the installation instructions are you having problems?
  4. What is the exact problem you're having?


All times are GMT -4. The time now is 20:39.