CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] 3.2 Installation in Debian 8.5 (https://www.cfd-online.com/Forums/openfoam-installation/173315-3-2-installation-debian-8-5-a.html)

jsm June 17, 2016 02:09

3.2 Installation in Debian 8.5
 
Hello All,

I am trying to install Openfoam extend 3.2 in debian 8.5 OS. When I compile it, I got the following error message. It looks like dependent library issue.

HTML Code:

[HTML][HTML]/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/setsToZones' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/setsToZones] Error 1
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'setsToZones' failed
make[2]: *** [setsToZones] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/subramanian/foam/foam-extend-3.2/src/dynamicMesh/dynamicMesh/lnInclude    -I/home/subramanian/foam/foam-extend-3.2/src/meshTools/lnInclude -IlnInclude -I. -I/home/subramanian/foam/foam-extend-3.2/src/foam/lnInclude -I/home/subramanian/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/regionSide.o Make/linux64GccDPOpt/splitMesh.o -L/home/subramanian/foam/foam-extend-3.2/lib/linux64GccDPOpt \
    -ldynamicMesh    -lmeshTools -lfoam -liberty -ldl  -lrt -lm -o /home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/splitMesh
/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/splitMesh' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/splitMesh] Error 1
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'splitMesh' failed
make[2]: *** [splitMesh] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/subramanian/foam/foam-extend-3.2/src/finiteVolume/lnInclude    -I/home/subramanian/foam/foam-extend-3.2/src/dynamicMesh/dynamicMesh/lnInclude    -I/home/subramanian/foam/foam-extend-3.2/src/meshTools/lnInclude -IlnInclude -I. -I/home/subramanian/foam/foam-extend-3.2/src/foam/lnInclude -I/home/subramanian/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/splitMeshRegions.o -L/home/subramanian/foam/foam-extend-3.2/lib/linux64GccDPOpt \
    -lfiniteVolume    -ldynamicMesh    -lmeshTools -lfoam -liberty -ldl  -lrt -lm -o /home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/splitMeshRegions
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/subramanian/foam/foam-extend-3.2/src/dynamicMesh/dynamicMesh/lnInclude    -I/home/subramanian/foam/foam-extend-3.2/src/meshTools/lnInclude    -I/home/subramanian/foam/foam-extend-3.2/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/subramanian/foam/foam-extend-3.2/src/foam/lnInclude -I/home/subramanian/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/stitchMesh.o -L/home/subramanian/foam/foam-extend-3.2/lib/linux64GccDPOpt \
    -ldynamicMesh    -lmeshTools    -lfiniteVolume -lfoam -liberty -ldl  -lrt -lm -o /home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/stitchMesh
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/subramanian/foam/foam-extend-3.2/src/finiteVolume/lnInclude    -I/home/subramanian/foam/foam-extend-3.2/src/meshTools/lnInclude -IlnInclude -I. -I/home/subramanian/foam/foam-extend-3.2/src/foam/lnInclude -I/home/subramanian/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/subsetMesh.o -L/home/subramanian/foam/foam-extend-3.2/lib/linux64GccDPOpt \
    -lfiniteVolume    -lmeshTools -lfoam -liberty -ldl  -lrt -lm -o /home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/subsetMesh
/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/splitMeshRegions' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/splitMeshRegions] Error 1
/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'splitMeshRegions' failed
make[2]: *** [splitMeshRegions] Error 2
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/stitchMesh' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/stitchMesh] Error 1
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'stitchMesh' failed
make[2]: *** [stitchMesh] Error 2
/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/subsetMesh' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/subsetMesh] Error 1
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'subsetMesh' failed
make[2]: *** [subsetMesh] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/subramanian/foam/foam-extend-3.2/src/finiteVolume/lnInclude    -I/home/subramanian/foam/foam-extend-3.2/src/tetFiniteElement/lnInclude -IlnInclude -I. -I/home/subramanian/foam/foam-extend-3.2/src/foam/lnInclude -I/home/subramanian/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/tetDecomposition.o -L/home/subramanian/foam/foam-extend-3.2/lib/linux64GccDPOpt \
    -lfiniteVolume    -ltetFiniteElement -lfoam -liberty -ldl  -lrt -lm -o /home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/tetDecomposition
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/subramanian/foam/foam-extend-3.2/src/meshTools/lnInclude                -IlnInclude -I. -I/home/subramanian/foam/foam-extend-3.2/src/foam/lnInclude -I/home/subramanian/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/zipUpMesh.o -L/home/subramanian/foam/foam-extend-3.2/lib/linux64GccDPOpt \
    -lmeshTools -lfoam -liberty -ldl  -lrt -lm -o /home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/zipUpMesh
/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/tetDecomposition' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/tetDecomposition] Error 1
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'tetDecomposition' failed
make[2]: *** [tetDecomposition] Error 2
/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/zipUpMesh' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/zipUpMesh] Error 1
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'zipUpMesh' failed
make[2]: *** [zipUpMesh] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/subramanian/foam/foam-extend-3.2/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/subramanian/foam/foam-extend-3.2/src/foam/lnInclude -I/home/subramanian/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/transformPoints.o -L/home/subramanian/foam/foam-extend-3.2/lib/linux64GccDPOpt \
    -lfiniteVolume -lfoam -liberty -ldl  -lrt -lm -o /home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/transformPoints
/usr/bin/ld: cannot find -lfoam
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
/home/subramanian/foam/foam-extend-3.2/wmake/Makefile:155: recipe for target '/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/transformPoints' failed
make[3]: *** [/home/subramanian/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/transformPoints] Error 1
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'transformPoints' failed
make[2]: *** [transformPoints] Error 2
make[2]: Target 'application' not remade because of errors.
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'manipulation' failed
make[1]: *** [manipulation] Error 2
make[1]: Target 'application' not remade because of errors.
/home/subramanian/foam/foam-extend-3.2/wmake/MakefileApps:39: recipe for target 'mesh' failed
make: *** [mesh] Error 2
make: Target 'application' not remade because of errors.
tools/makeThirdPartyFunctionsForRPM: line 34: rpm: command not found

This system rpm command: rpm

========================================
Starting ThirdParty Allwmake
========================================

========================================
Starting ThirdParty AllMake: Stage5   
========================================

Checking for a Mercurial client: hg
Using Mercurial/hg to download the source code for swak4Foam
requesting all changes
adding changesets
adding manifests
adding file changes
added 2905 changesets with 13085 changes to 3290 files (+11 heads)
updating to branch default
2731 files updated, 0 files merged, 0 files removed, 0 files unresolved
83 files updated, 0 files merged, 40 files removed, 0 files unresolved
wclean simpleFunctionObjects
wclean swak4FoamParsers
wclean swakLagrangianParser
wclean groovyBC
wclean swakFunctionObjects
wclean simpleSwakFunctionObjects
wclean simpleLagrangianFunctionObjects
wclean simpleSearchableSurfaces
wclean swakTopoSources
wclean swakSourceFields
wclean swakFiniteArea
wclean groovyStandardBCs
wclean swakPythonIntegration
wclean swakFvOptions
wclean swakChemistryModelFunctionPlugin
wclean swakFacSchemesFunctionPlugin
wclean swakFvcSchemesFunctionPlugin
wclean swakLagrangianCloudSourcesFunctionPlugin
wclean swakLocalCalculationsFunctionPlugin
wclean swakMeshQualityFunctionPlugin
wclean swakMeshWaveFunctionPlugin
wclean swakRadiationModelFunctionPlugin
wclean swakRandomFunctionPlugin
wclean swakSurfacesAndSetsFunctionPlugin
wclean swakThermoTurbFunctionPlugin
wclean swakTransportTurbFunctionPlugin
wclean swakVelocityFunctionPlugin
wclean coalCloudAdaptor
wclean funkySetFields
wclean funkySetBoundaryField
wclean replayTransientBC
wclean funkySetAreaFields
wclean funkyDoCalc
wclean calcNonUniformOffsetsForMapped
wclean fieldReport
wclean funkyPythonPostproc
wclean funkySetLagrangianField
wclean funkyWarpMesh
This is a clean install
No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 0.3.2
Bison is version 3.0.2
swak4Foam only confirmed to work with Bison 2.x
Consider running ./maintainanceScripts/compileRequirements.sh for a local bison-installation
Set the environment variable DEVELOPE_FOR_NEW_BISON if you want to continue anyway.

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard

========================================
Done ThirdParty AllMake: Stage5       
========================================

========================================
Done ThirdParty Allwmake
========================================

[/HTML][/HTML]

I am seeing two error messages. One for Openfoam extend "Target application was not remade because of errors". Another one for Paraview library version conflict. Please help me to solve this issue.

wyldckat June 18, 2016 16:30

Quick answer: Based on the error output you provided, "libiberty.so" is missing. Try installing all of the packages listed here, using the commands provided there: http://openfoamwiki.net/index.php/In...u#Ubuntu_15.10 - it's for Ubuntu, but should work for Debian as well.

jsm June 19, 2016 10:53

Thank you for your comments. I will try and let you know.


All times are GMT -4. The time now is 07:16.