OpenFOAM3.0+ compile commands history on redhat 7
Posted March 8, 2016 at 01:04 by donQi
INSTALLATION OF THE REQUIRED LIBRARIES
if you get the error -> Group development does not have any packages to install.
then try :
then:
UNCOMPRESS OPENFOAM
BASHRC
bash: mpirun: command not found...
SOLUTION : in bashrc add the following lines:
COMPILE
Back to terminal, let's compile:
ADDITIONAL FIX:
To fix some problems of parallel launch:
If in parallel you get the error snappyHexMesh: route/tc.c:973: rtnl_tc_register: Assertion `0' failed.
as root type:
Code:
yum install system-config-users yum groupinstall "Development Tools"
then try :
Code:
yum groups mark install "Development Tools" yum groups mark convert "Development Tools" yum groupinstall "Development Tools"
Code:
yum install openmpi openmpi-devel zlib-devel gstreamer-plugins-base-devel \ libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel libpng-devel \ libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \ readline-devel ncurses-devel python python-devel cmake qt-devel qt-assistant \ mpfr-devel gmp-devel yum install qt5-assistant.x86_64 yum install gstreamer-plugins-base.x86_64 yum install --enablerepo=epel qtwebkit-devel yum install paraview-openmpi.x86_64 openmpi.x86_64 paraview-mpich.x86_64 yum install zlib-static yum install glibc-static
Code:
cd ~ mkdir OpenFOAM cd OpenFOAM tar -xzf OpenFOAM-v3.0+.tgz tar -xzf ThirdParty-v3.0+.tgz
bash: mpirun: command not found...
SOLUTION : in bashrc add the following lines:
Code:
export PATH=/usr/lib64/openmpi/bin/:$PATH export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/lib64/openmpi/lib:$LD_LIBRARY_PATH source ~/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc
Back to terminal, let's compile:
Code:
foam cd $WM_PROJECT_DIR foamSystemCheck -> ok pass ./Allwmake
To fix some problems of parallel launch:
Code:
cd $FOAM_SRC/Pstream/ ./Allwmake
as root type:
Code:
rpm -e --nodeps "libnl3"
Total Comments 0