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.org] Errors in installing OpenFOAM 2.2.2 on Ubuntu 18.04 LTS (https://www.cfd-online.com/Forums/openfoam-installation/215375-errors-installing-openfoam-2-2-2-ubuntu-18-04-lts.html)

xixiuqi March 3, 2019 10:39

Errors in installing OpenFOAM 2.2.2 on Ubuntu 18.04 LTS
 
Hi,

I am installing OpenFOAM 2.2.2 on Ubuntu 18.04 LTS with the command /Allwmake. However, the compile is terminated with errors. Here is the last part of the log file.

Code:

/usr/bin/ld: cannot find -lsampling
/usr/bin/ld: cannot find -llagrangianIntermediate
/usr/bin/ld: cannot find -llagrangianSpray
/usr/bin/ld: cannot find -lfvOptions
collect2: error: ld returned 1 exit status
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libcompressibleMultiPhaseModel.so' is up to date.
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/Makefile:149: recipe for target '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/sprayEngineFoam' failed
make[2]: *** [/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/sprayEngineFoam] Error 1
+ wmake libso interfacialModels
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'sprayFoam' failed
make[1]: *** [sprayFoam] Error 2
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/solidDisplacementFoam' is up to date.
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/twoPhaseMixture/lnInclude -IincompressibleThreePhaseMixture -IthreePhaseInterfaceProperties -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/interfaceProperties/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/incompressible/turbulenceModel -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/fvOptions/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/sampling/lnInclude -IlnInclude -I. -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/threePhaseMixture.o Make/linux64GccDPOpt/threePhaseInterfaceProperties.o Make/linux64GccDPOpt/interMixingFoam.o -L/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib \
    -ltwoPhaseMixture -ltwoPhaseProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -lOpenFOAM -ldl  -lm -o /home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/interMixingFoam
/usr/bin/ld: cannot find -lfvOptions
/usr/bin/ld: cannot find -lsampling
collect2: error: ld returned 1 exit status
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/Makefile:149: recipe for target '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/interMixingFoam' failed
make[2]: *** [/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/interMixingFoam] Error 1
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'interFoam' failed
make[1]: *** [interFoam] Error 2
+ wmake libso multiphaseMixture
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libcompressibleMultiphaseEulerianInterfacialModels.so' is up to date.
+ wmake libso multiphaseSystem
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/intermediate/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/specie/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/basic/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/reactionThermo/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/radiationModels/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/compressible/turbulenceModel -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/regionModel/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/surfaceFilmModels/lnInclude -IlnInclude -I. -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/uncoupledKinematicParcelFoam.o -L/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib \
    -llagrangian -llagrangianIntermediate -lthermophysicalFunctions -lfluidThermophysicalModels -lspecie -lradiationModels -lcompressibleTurbulenceModel -lcompressibleRASModels -lcompressibleLESModels -lfiniteVolume -lmeshTools -lregionModels -lsurfaceFilmModels -lOpenFOAM -ldl  -lm -o /home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/uncoupledKinematicParcelFoam
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam' is up to date.
/usr/bin/ld: cannot find -llagrangianIntermediate
collect2: error: ld returned 1 exit status
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/Makefile:149: recipe for target '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/uncoupledKinematicParcelFoam' failed
make[2]: *** [/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/uncoupledKinematicParcelFoam] Error 1
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'uncoupledKinematicParcelFoam' failed
make[1]: *** [uncoupledKinematicParcelFoam] Error 2
make[1]: Target 'application' not remade because of errors.
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'lagrangian' failed
make: *** [lagrangian] Error 2
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmultiphaseInterFoam.so' is up to date.
+ wmake
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmultiphaseSystem.so' is up to date.
+ wmake
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/settlingFoam' is up to date.
+ wmake libso phaseModel
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/twoLiquidMixingFoam' is up to date.
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/multiphaseInterFoam' is up to date.
+ wmake MRFMultiphaseInterFoam
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/multiphaseEulerFoam' is up to date.
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libphaseModel.so' is up to date.
+ wmake libso interfacialModels
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/MRFMultiphaseInterFoam' is up to date.
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libEulerianInterfacialModels.so' is up to date.
+ wmake libso kineticTheoryModels
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libkineticTheoryModel.so' is up to date.
+ wmake
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam' is up to date.
make[1]: Target 'application' not remade because of errors.
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'multiphase' failed
make: *** [multiphase] Error 2
make: Target 'application' not remade because of errors.

Thank you very much

wyldckat March 10, 2019 13:09

Quick answer: Knowing which installation instructions would have helped to better diagnose the issue.

But since you didn't, I've now finished writing and testing installation instructions for OpenFOAM 2.2.2 on Ubuntu 18.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

harry1oo1oo1 December 12, 2019 09:58

Quote:

Originally Posted by wyldckat (Post 727365)
Quick answer: Knowing which installation instructions would have helped to better diagnose the issue.

But since you didn't, I've now finished writing and testing installation instructions for OpenFOAM 2.2.2 on Ubuntu 18.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04




Hi, I have a question.
When I typed 'sed -i -e 's=-lz -lm -lrt=-Xlinker --no-as-needed -lz -lm -lrt=' \$WM_THIRD_PARTY_DIR/etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-*',



it comes out: sed: can't read $WM_THIRD_PARTY_DIR/etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-*: No such file or directory.


Could you please help me? Thank you.

harry1oo1oo1 December 12, 2019 10:03

Quote:

Originally Posted by xixiuqi (Post 726630)
Hi,

I am installing OpenFOAM 2.2.2 on Ubuntu 18.04 LTS with the command /Allwmake. However, the compile is terminated with errors. Here is the last part of the log file.

Code:

/usr/bin/ld: cannot find -lsampling
/usr/bin/ld: cannot find -llagrangianIntermediate
/usr/bin/ld: cannot find -llagrangianSpray
/usr/bin/ld: cannot find -lfvOptions
collect2: error: ld returned 1 exit status
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libcompressibleMultiPhaseModel.so' is up to date.
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/Makefile:149: recipe for target '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/sprayEngineFoam' failed
make[2]: *** [/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/sprayEngineFoam] Error 1
+ wmake libso interfacialModels
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'sprayFoam' failed
make[1]: *** [sprayFoam] Error 2
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/solidDisplacementFoam' is up to date.
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/twoPhaseMixture/lnInclude -IincompressibleThreePhaseMixture -IthreePhaseInterfaceProperties -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/interfaceProperties/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/incompressible/turbulenceModel -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/fvOptions/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/sampling/lnInclude -IlnInclude -I. -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/threePhaseMixture.o Make/linux64GccDPOpt/threePhaseInterfaceProperties.o Make/linux64GccDPOpt/interMixingFoam.o -L/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib \
    -ltwoPhaseMixture -ltwoPhaseProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -lOpenFOAM -ldl  -lm -o /home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/interMixingFoam
/usr/bin/ld: cannot find -lfvOptions
/usr/bin/ld: cannot find -lsampling
collect2: error: ld returned 1 exit status
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/Makefile:149: recipe for target '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/interMixingFoam' failed
make[2]: *** [/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/interMixingFoam] Error 1
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'interFoam' failed
make[1]: *** [interFoam] Error 2
+ wmake libso multiphaseMixture
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libcompressibleMultiphaseEulerianInterfacialModels.so' is up to date.
+ wmake libso multiphaseSystem
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/intermediate/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/specie/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/basic/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/reactionThermo/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/radiationModels/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/compressible/turbulenceModel -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/regionModel/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/surfaceFilmModels/lnInclude -IlnInclude -I. -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/uncoupledKinematicParcelFoam.o -L/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib \
    -llagrangian -llagrangianIntermediate -lthermophysicalFunctions -lfluidThermophysicalModels -lspecie -lradiationModels -lcompressibleTurbulenceModel -lcompressibleRASModels -lcompressibleLESModels -lfiniteVolume -lmeshTools -lregionModels -lsurfaceFilmModels -lOpenFOAM -ldl  -lm -o /home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/uncoupledKinematicParcelFoam
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam' is up to date.
/usr/bin/ld: cannot find -llagrangianIntermediate
collect2: error: ld returned 1 exit status
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/Makefile:149: recipe for target '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/uncoupledKinematicParcelFoam' failed
make[2]: *** [/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/uncoupledKinematicParcelFoam] Error 1
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'uncoupledKinematicParcelFoam' failed
make[1]: *** [uncoupledKinematicParcelFoam] Error 2
make[1]: Target 'application' not remade because of errors.
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'lagrangian' failed
make: *** [lagrangian] Error 2
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmultiphaseInterFoam.so' is up to date.
+ wmake
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmultiphaseSystem.so' is up to date.
+ wmake
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/settlingFoam' is up to date.
+ wmake libso phaseModel
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/twoLiquidMixingFoam' is up to date.
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/multiphaseInterFoam' is up to date.
+ wmake MRFMultiphaseInterFoam
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/multiphaseEulerFoam' is up to date.
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libphaseModel.so' is up to date.
+ wmake libso interfacialModels
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/MRFMultiphaseInterFoam' is up to date.
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libEulerianInterfacialModels.so' is up to date.
+ wmake libso kineticTheoryModels
'/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libkineticTheoryModel.so' is up to date.
+ wmake
make[2]: '/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam' is up to date.
make[1]: Target 'application' not remade because of errors.
/home/xiuqi/OpenFOAM/OpenFOAM-2.2.2/wmake/MakefileApps:39: recipe for target 'multiphase' failed
make: *** [multiphase] Error 2
make: Target 'application' not remade because of errors.

Thank you very much




Have you solved this problem?


All times are GMT -4. The time now is 06:26.