CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Re : Problem Installing OpenFOAM on Centos -5.3 (http://www.cfd-online.com/Forums/openfoam-installation/72168-re-problem-installing-openfoam-centos-5-3-a.html)

mohanphy January 27, 2010 12:52

Re : Problem Installing OpenFOAM on Centos -5.3
 
Dear All,

Thanks for your time.

I am new to OpenFOAM. I am using Centos 5.3 . When I am trying to compile OpenFOAM-1.6.x, it shows the following error. Any help will really appricate .

I did the following steps :

# yum install git flex python python-devel binutils binutils-devel qt4 qt4-devel wget cmake zlib zlib-devel

$ mkdir OpenFOAM
$ cd OpenFOAM
$ wget http://downloads.sourceforge.net/foa...se_mirror=mesh
$ wget http://downloads.sourceforge.net/foa...se_mirror=mesh
$ tar xfz ThirdParty-1.6.General.gtgz
$ tar xfz ThirdParty-1.6.linuxGcc.gtgz
$ ln -s ~/OpenFOAM/ThirdParty-1.6 ~/OpenFOAM/ThirdParty-1.6.x
$ git clone http://repo.or.cz/r/OpenFOAM-1.6.x.git
$ cd OpenFOAM-1.6.x/

$ echo ". ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc" >> ~/.bashrc

$ ./Allwmake

...........
...........
...........



FOAM-1.6.x/src/meshTools/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/treeDataPrimitivePatchName.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/triSurface/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/meshTools/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/boundaryMesh.o Make/linuxGccDPOpt/surfaceToPatch.o Make/linuxGccDPOpt/treeDataPrimitivePatchName.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-ltriSurface -lmeshTools -ldynamicMesh -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/surfaceToPatch
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make[2]: *** [/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/surfaceToPatch] Error 1
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/surface/surfaceToPatch'
make[1]: *** [surfaceToPatch] Error 2
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/surface/surfaceTransformPoints'
Making dependency list for source file surfaceTransformPoints.C
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/surface/surfaceTransformPoints'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/surface/surfaceTransformPoints'
SOURCE=surfaceTransformPoints.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/triSurface/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/surfaceTransformPoints.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/triSurface/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/surfaceTransformPoints.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-lmeshTools -ltriSurface -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/surfaceTransformPoints
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make[2]: *** [/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/surfaceTransformPoints] Error 1
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/surface/surfaceTransformPoints'
make[1]: *** [surfaceTransformPoints] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/surface'
make: *** [surface] Error 2
make[1]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/adiabaticFlameT'
Making dependency list for source file adiabaticFlameT.C
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/adiabaticFlameT'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/adiabaticFlameT'
SOURCE=adiabaticFlameT.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/adiabaticFlameT.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/adiabaticFlameT.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/adiabaticFlameT
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/adiabaticFlameT'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/chemkinToFoam'
Making dependency list for source file chemkinToFoam.C
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/chemkinToFoam'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/chemkinToFoam'
SOURCE=chemkinToFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/chemkinToFoam.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/chemkinToFoam.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-lreactionThermophysicalModels -lbasicThermophysicalModels -lspecie -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/chemkinToFoam
/usr/bin/ld: cannot find -lreactionThermophysicalModels
collect2: ld returned 1 exit status
make[2]: *** [/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/chemkinToFoam] Error 1
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/chemkinToFoam'
make[1]: *** [chemkinToFoam] Error 2
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumCO'
Making dependency list for source file equilibriumCO.C
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumCO'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumCO'
SOURCE=equilibriumCO.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/equilibriumCO.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/equilibriumCO.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/equilibriumCO
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumCO'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
Making dependency list for source file equilibriumFlameT.C
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
SOURCE=equilibriumFlameT.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/equilibriumFlameT.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/equilibriumFlameT.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/equilibriumFlameT
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/IFCLookUpTableGen'
Making dependency list for source file IFCLookUpTableGen.C
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/IFCLookUpTableGen'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/IFCLookUpTableGen'
SOURCE=IFCLookUpTableGen.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/meshTools/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/radiation/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/IFCLookUpTableGen.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/meshTools/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/radiation/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/IFCLookUpTableGen.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-lspecie -lmeshTools -lOpenFOAM -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/IFCLookUpTableGen
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make[2]: *** [/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/IFCLookUpTableGen] Error 1
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/IFCLookUpTableGen'
make[1]: *** [IFCLookUpTableGen] Error 2
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
Making dependency list for source file mixtureAdiabaticFlameT.C
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[2]: Entering directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
SOURCE=mixtureAdiabaticFlameT.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/mixtureAdiabaticFlameT.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/mohan/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/mixtureAdiabaticFlameT.o -L/home/mohan/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/mixtureAdiabaticFlameT
make[2]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/mohan/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.
[mohan@mohan OpenFOAM-1.6.x]$


Please help me to fix the issue.

Thanks & Rg
Mohan L

wyldckat February 7, 2010 20:09

Greetings Mohan L,

Have you checked this thread?
And can you please use the # button next time to show us the error output?

The error occurred waaaay sooner than your pasted output! Check Mads script cookbook here... actually, what I mean is to make Allwmake send it's output directly into a file, so you can attach the file to your post! In other words:
Code:

./Allwmake >make.log 2>&1
And zip your make.log and attach it to your response, in case the first thread I wrote about doesn't help you out!

Best regards,
Bruno


All times are GMT -4. The time now is 05:48.