CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 2.2.0 installation on scientific-linux (https://www.cfd-online.com/Forums/openfoam-installation/114728-openfoam-2-2-0-installation-scientific-linux.html)

kulkarni Harshawardhan March 16, 2013 09:30

OpenFOAM 2.2.0 installation on scientific-linux
 
I got this error while installing OF 2.2.0 on scintific Linux (cluster)

Kindly help



readSolidDisplacementFoamControls.H: In function ‘int main(int, char**)’:
readSolidDisplacementFoamControls.H:3: warning: unused variable ‘nCorr’
readSolidDisplacementFoamControls.H:5: warning: unused variable ‘convergenceTolerance’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o Make/linux64GccDPOpt/solidDisplacementFoam.o -L/home/deepak/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lOpenFOAM -ldl -lm -o /home/deepak/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/solidDisplacementFoam
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/deepak/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/solidDisplacementFoam] Error 1
make[2]: Leaving directory `/home/deepak/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[1]: *** [solidDisplacementFoam] Error 2
make[2]: Entering directory `/home/deepak/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
Making dependency list for source file tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C
Making dependency list for source file solidEquilibriumDisplacementFoam.C
make[2]: Leaving directory `/home/deepak/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: Entering directory `/home/deepak/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
SOURCE=tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tractionDisplacementCorrectionFvPatchVectorField.o
SOURCE=solidEquilibriumDisplacementFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/solidEquilibriumDisplacementFoam.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/deepak/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/tractionDisplacementCorrectionFvPatchVectorField.o Make/linux64GccDPOpt/solidEquilibriumDisplacementFoam.o -L/home/deepak/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lOpenFOAM -ldl -lm -o /home/deepak/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/deepak/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam] Error 1
make[2]: Leaving directory `/home/deepak/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: *** [solidEquilibriumDisplacementFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/deepak/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/stressAnalysis'
make: *** [stressAnalysis] Error 2
make: Target `application' not remade because of errors.

linnemann March 20, 2013 14:38

Hi

Quote:

/usr/bin/ld: cannot find -lfiniteVolume
Means that something went wrong long before this error.

You need to break the compilation just after the first error or output to a log file so its possible to scroll back to the first error.

Code:

./Allwmake > make.log 2>&1
Your other options is to use my precompiled images just uploaded on the centFoam project.

http://sourceforge.net/projects/centfoam/


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