install openfoam2.1.1 error on ubuntu10.10
Hi, I install the openfoam2.1.1 on my laptop. The installing method is the one presented on the site of openfoam. But I encounter following erro. I do not know why. Can you help me. Thank you!
I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/frictionalStressModel.o SOURCE=frictionalStressModel/frictionalStressModel/newFrictionalStressModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/foam/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/newFrictionalStressModel.o SOURCE=frictionalStressModel/JohnsonJackson/JohnsonJacksonFrictionalStress.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/foam/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/JohnsonJacksonFrictionalStress.o SOURCE=frictionalStressModel/Schaeffer/SchaefferFrictionalStress.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/foam/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/SchaefferFrictionalStress.o '/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib/libkineticTheoryModel.so' is up to date. make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam/kineticTheoryModels' + wmake make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam' make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam' make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam' SOURCE=twoPhaseEulerFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I../bubbleFoam -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -IturbulenceModel -IkineticTheoryModels/lnInclude -IinterfacialModels/lnInclude -IphaseModel/lnInclude -Iaveraging -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/twoPhaseEulerFoam.o /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’: /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’ g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I../bubbleFoam -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -IturbulenceModel -IkineticTheoryModels/lnInclude -IinterfacialModels/lnInclude -IphaseModel/lnInclude -Iaveraging -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGcc44DPOpt/twoPhaseEulerFoam.o -L/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib \ -lEulerianInterfacialModels -lfiniteVolume -lmeshTools -lincompressibleTransportModels -lphaseModel -lkineticTheoryModel -lOpenFOAM -ldl -lm -o /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/twoPhaseEulerFoam /usr/bin/ld: cannot find -lEulerianInterfacialModels /usr/bin/ld: cannot find -lfiniteVolume /usr/bin/ld: cannot find -lmeshTools /usr/bin/ld: cannot find -lincompressibleTransportModels /usr/bin/ld: cannot find -lphaseModel collect2: ld returned 1 exit status make[2]: *** [/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/twoPhaseEulerFoam] Error 1 make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam' make[1]: *** [twoPhaseEulerFoam] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase' make: *** [multiphase] Error 2 make[1]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis' make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam' make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam' make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam' SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/tractionDisplacementFvPatchVectorField.o SOURCE=solidDisplacementFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/solidDisplacementFoam.o readSolidDisplacementFoamControls.H: In function ‘int main(int, char**)’: readSolidDisplacementFoamControls.H:3: warning: unused variable ‘nCorr’ readSolidDisplacementFoamControls.H:5: warning: unused variable ‘convergenceTolerance’ g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGcc44DPOpt/tractionDisplacementFvPatchVectorField.o Make/linuxGcc44DPOpt/solidDisplacementFoam.o -L/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib \ -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidDisplacementFoam /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make[2]: *** [/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidDisplacementFoam] Error 1 make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam' make[1]: *** [solidDisplacementFoam] Error 2 make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam' make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam' make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam' SOURCE=tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/tractionDisplacementCorrectionFvPatchVectorField.o SOURCE=solidEquilibriumDisplacementFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/solidEquilibriumDisplacementFoam.o g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGcc44DPOpt/tractionDisplacementCorrectionFvPatchVectorField.o Make/linuxGcc44DPOpt/solidEquilibriumDisplacementFoam.o -L/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib \ -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidEquilibriumDisplacementFoam /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make[2]: *** [/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidEquilibriumDisplacementFoam] Error 1 make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam' make[1]: *** [solidEquilibriumDisplacementFoam] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis' make: *** [stressAnalysis] Error 2 make: Target `application' not remade because of errors. |
Greetings Jianming Liu,
OK, the first error is usually the one to blame. This is too much far ahead for deducing how to fix this. Run Allwmake like this: Code:
./Allwmake > make.log 2>&1 If you still can't figure out the problem, search and replace any sensitive content in the file (names and paths), then pack the file and attach the packaged file. To pack the file, you can run: Code:
tar -czf make.log.tar.gz make.log Best regards, Bruno |
Thank you. I have done by your saying and found the error and fix it. Thank you
Quote:
|
Hello Jianming Liu
Can you please tell me how did you solve the error? |
All times are GMT -4. The time now is 14:42. |