CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Micro HOWTO Rocks clusters 50 OpenFoam 15 Linux64 (https://www.cfd-online.com/Forums/openfoam-installation/57329-micro-howto-rocks-clusters-50-openfoam-15-linux64.html)

james August 30, 2008 10:10

I recently installed OpenFoam
 
I recently installed OpenFoam on a Rocks 5.0 cluster (RHEL 5.0 / Centos 5.0). I had all sorts of issues with gcc and paraview ... here is how I overcame them:

yum install gmp-devel.x86_64

Download and manually install mpfr-2.3.1.gz (No package available for centos 5?)
http://www.mpfr.org/mpfr-current/#download
Add mpfr dir to LD_LIBRARY_PATH in ~/.bashrc e.g.
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

Download and manually install qt435 (Centos 5 qt package is too old e.g. 4.2.x)
ftp://ftp.trolltech.com/qt/source/qt...c-4.3.5.tar.gz

Backup buildParaViewFunctions and insert:
addCMakeVariable "VTK_USE_RPATH:BOOL=OFF"
Build Paraview 3.3 and the PV3FoamReader module

Usefull threads:
http://www.cfd-online.com/OpenFOAM_D...tml?1217353541
http://www.cfd-online.com/OpenFOAM_D...tml?1196597533
http://www.cfd-online.com/OpenFOAM_D...es/1/8399.html

james August 30, 2008 10:15

This is what my ~/.bashrc look
 
This is what my ~/.bashrc looked like eventually:

# for mpfr
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# change default OpenFoam directory
export FOAM_INST_DIR=/share/apps/OpenFOAM
foamDotFile=$FOAM_INST_DIR/OpenFOAM-1.5/etc/bashrc
[ -f $foamDotFile ] && . $foamDotFile

# set OpenFoam environment variables
. $FOAM_INST_DIR/OpenFOAM-1.5/etc/bashrc

# set QT related variables
QT=/usr/local/Trolltech/Qt-4.3.5
export PATH=$QT/bin:$PATH
export LD_LIBRARY_PATH=$QT/lib:$LD_LIBRARY_PATH


All times are GMT -4. The time now is 09:13.