|
[Sponsors] |
[OpenFOAM.org] Errors in installing OpenFOAM 2.2.2 on Ubuntu 18.04 LTS |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 3, 2019, 11:39 |
Errors in installing OpenFOAM 2.2.2 on Ubuntu 18.04 LTS
|
#1 |
New Member
Join Date: Mar 2019
Posts: 6
Rep Power: 7 |
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. |
|
March 10, 2019, 14:09 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
December 12, 2019, 10:58 |
|
#3 | |
New Member
Join Date: Dec 2019
Posts: 2
Rep Power: 0 |
Quote:
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. |
||
December 12, 2019, 11:03 |
|
#4 | |
New Member
Join Date: Dec 2019
Posts: 2
Rep Power: 0 |
Quote:
Have you solved this problem? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I cant find openfoam for ubuntu 14.04 LTS | seju | OpenFOAM Installation | 15 | August 30, 2014 13:07 |
Installing 2.3.0 on Ubuntu 14.04 LTS | siw | OpenFOAM Installation | 6 | July 5, 2014 07:16 |
Installing OpenFOAM 2.2.0 on Ubuntu 12.10 i686 | AHutchison | OpenFOAM Installation | 6 | June 4, 2013 13:11 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |