CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   error while installing (http://www.cfd-online.com/Forums/openfoam-installation/79592-error-while-installing.html)

akonduri August 27, 2010 15:02

error while installing
 
Hi,

I get the following error while installation of OpenFOAM 1.7. The OS is RedHat.


make[2]: *** [/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/IFCLookUpTableGen] Error 1
make[2]: Leaving directory `/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/applications/utilities/thermophysical/IFCLookUpTableGen'
make[1]: *** [IFCLookUpTableGen] Error 2
make[2]: Entering directory `/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/akonduri/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT] Error 1
make[2]: Leaving directory `/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/akonduri/OpenFOAM/OpenFOAM-1.7.0/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.

wyldckat August 27, 2010 15:20

Greetings Aditya,

Knowing which version of RedHat would also help...
Also, what is the version of gcc you are using? Run this:
Code:

gcc -v
If it's a version lower than 4.3.1, then that's the problem: you will need to get a newer gcc version.

As for the error:
Quote:

/usr/bin/ld: cannot find -lOpenFOAM
indicates that libOpenFOAM wasn't even built, so the problem is closer to the beggining of the run. Run Allwmake like this:
Code:

./Alwmake > make.log 2>&1
When it's done, pack the make.log file and post it here.

Additionally, AFAIK, there is a package for CentOS named centfoam that might help you install OpenFOAM in RedHat: CentFOAM - OpenFOAM for CentOS.x86_64

Best regards,
Bruno


All times are GMT -4. The time now is 17:35.