When you install the third-party packages, the PyFoam cannot be compiled. Otherwise, when you install swak4Foam, it will appear: helpers/printSwakVersion.H:46:21: fatal error: Pstream.H: No such file or directory #include "Pstream.H"Ĥ. Before you compile Third-party packages, run: cd $FOAM_SRC To make the FOAM related variables effective.ģ. Where $HOME/foam/foam-extend-3.1/ is the location of your foam-extend directory. vi ~/.bash_profileĪdd the following line (variables) before the line PATH=.: export QT_BIN_DIR=/usr/lib64/qt4/binĪdd the following line to the end of ~/.bashrc: alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc' After you have downloaded the source code, you should modify some environmental variables in the file. Mv openfoam-extend-foam-extend-3.1 foam-extend-3.1Ģ. In default, the directory of foam-extend 3.1 is openfoam-extend-foam-extend-3.1, to make it shorter, you can change its name with cd $HOME/foam Download foam-extend 3.1 to the folder foam. yum install m4 cmake qt qt-devel qtwebkit qtwebkit-devel flex To install the third-party packages, you should have these packages installed: qt, qt-devel, qtwebkit and qtwebkit-devel for Paraview compiling and running, gcc-c++ and libc++-devel for openmpi, m4 for bison. sudo yum install rpm-build gcc gcc-c++ libstdc++-devel binutils-develĢ. In order to install foam-extend 3.1, please make sure you have installed packages git, mercurial and subversion for source code retrieving, rpm-build for software packaging, gcc and g++ for compiling.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |