|
[Sponsors] |
[foam-extend.org] 3.1 and 3.2 in Ubuntu 14.04: cannot find "-lfoam" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 27, 2016, 05:12 |
3.1 and 3.2 in Ubuntu 14.04: cannot find "-lfoam"
|
#1 |
New Member
Join Date: May 2013
Posts: 2
Rep Power: 0 |
Dear all,
The following applies to both foam-extend 3.1 and 3.2, which I try to install on Ubuntu 14.04. I get exactly the same error for both versions. During compilation, I get a bunch of "...ld: cannot find -lfoam". (Please see log.make.gz ) After checking Bruno's answer on "-lfoam" issue in the previous Thread "Problems with "cannot find -liberty"", I have already had a look in the file "src/foam/Make/files" and the last line there already contains "libfoam" (I assume that this is correct). However if I check $FOAM_LIBBIN, then I don't see any "libfoam.so". After running foamInstallationTest, I get two critical errors: Code:
Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: Virtual-Ubuntu OS: Linux version 3.13.0-101-generic ------------------------------------------------------------------------------- Checking main foam-extend env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/myname/foam yes yes $WM_PROJECT_USER_DIR /home/myname/foam/myname-3.2 no no $WM_THIRD_PARTY_DIR ...myname/foam/foam-extend-3.2/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the foam-extend env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/myname/foam/foam-extend-3.2 yes yes yes $FOAM_APPBIN ...3.2/applications/bin/linux64GccDPOpt yes yes yes $FOAM_SITE_APPBIN ...ha/foam/site/3.2/bin/linux64GccDPOpt no no $FOAM_USER_APPBIN ...3.2/applications/bin/linux64GccDPOpt no no $WM_DIR /home/myname/foam/foam-extend-3.2/wmake yes yes yes ------------------------------------------------------------------------------- Checking the foam-extend env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN .../foam-extend-3.2/lib/linux64GccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...ha/foam/site/3.2/lib/linux64GccDPOpt no no $FOAM_USER_LIBBIN ...ha/foam/myname-3.2/lib/linux64GccDPOpt no no $MPI_ARCH_PATH ...nmpi-1.6.5/platforms/linux64GccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- WARNING: gcc version does not match gcc supplied with this release of foam-extend Supplied version: 4.3.3 User version : 4.4.7 Minimum required: 4.3.1 gcc 4.4.7 WARNING: Conflicting installations: foam-extend settings : /bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.6 /bin/gzip tar 1.27.1 /bin/tar icoFoam WARNING: Conflicting installations: foam-extend settings : /home/myname/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 2 critical error(s). Review the output for warning messages and consult the installation guide for trouble shooting. done. Code:
Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: Virtual-Ubuntu OS: Linux version 3.13.0-101-generic ------------------------------------------------------------------------------- Checking main foam-extend env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/myname/foam yes yes $WM_PROJECT_USER_DIR /home/myname/foam/myname-3.2 no no $WM_THIRD_PARTY_DIR ...myname/foam/foam-extend-3.2/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the foam-extend env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/myname/foam/foam-extend-3.2 yes yes yes $FOAM_APPBIN ...3.2/applications/bin/linux64GccDPOpt yes yes yes $FOAM_SITE_APPBIN ...ha/foam/site/3.2/bin/linux64GccDPOpt no no $FOAM_USER_APPBIN ...3.2/applications/bin/linux64GccDPOpt no no $WM_DIR /home/myname/foam/foam-extend-3.2/wmake yes yes yes ------------------------------------------------------------------------------- Checking the foam-extend env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN .../foam-extend-3.2/lib/linux64GccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...ha/foam/site/3.2/lib/linux64GccDPOpt no no $FOAM_USER_LIBBIN ...ha/foam/myname-3.2/lib/linux64GccDPOpt no no $MPI_ARCH_PATH ...nmpi-1.6.5/platforms/linux64GccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- WARNING: gcc version does not match gcc supplied with this release of foam-extend Supplied version: 4.3.3 User version : 4.9.4 Minimum required: 4.3.1 gcc 4.9.4 /bin/gcc gzip 1.6 /bin/gzip tar 1.27.1 /bin/tar icoFoam WARNING: Conflicting installations: foam-extend settings : /home/myname/foam/foam-extend-3.2/applications/bin/linux64GccDPOpt/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). Review the output for warning messages and consult the installation guide for trouble shooting. done. Many thanks! Last edited by disney; November 27, 2016 at 08:49. |
|
November 28, 2016, 07:50 |
issue solved
|
#2 |
New Member
Join Date: May 2013
Posts: 2
Rep Power: 0 |
This issue has been solved. The problem was that the dynamic version of libz (thus "libz.so") was missing, whereas I had only "libz.a" available in my system.
|
|
August 25, 2018, 03:48 |
|
#3 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15 |
Hello.
I just wanted to report my experience. I tried to install foam-extend 4.1 on Suse 42.3. I tried to follow the installation of https://openfoamwiki.net/index.php/I...oam-extend-4.0. After that I got the same two errors as above after the execution of the command foamInstallation. I reorganized the links to gcc and after that i got only one error. Finally i realized that there is a Suse specific installation instruction: https://openfoamwiki.net/index.php/I...d-4.0/openSUSE I followed the steps described there and the installation succeeded. I report this in case someone runs in the same issues and to save maybe a bit of her/his time. |
|
November 5, 2018, 04:58 |
|
#4 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
Good day!
I am running openSuse 15 and tried to build foam-extend 4.0 according to the description given in the link posted by Michael Alletto. I get the following error when compiling: Code:
Note: ignore spurious warnings about missing mpicxx.h headers + wmake libso foam SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/4.0/' -e 's/BUILD_STRING/4.0-efcc2b1b7df8/' $SOURCE > Make/linux64GccDPOpt/global.C; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -pthread -I/home/a_amouzandeh/foam/foam-extend-4.0/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/a_amouzandeh/foam/foam-extend-4.0/src/foam/lnInclude -I/home/a_amouzandeh/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPOpt/global.C -o Make/linux64GccDPOpt/global.o g++: error: libtool:: No such file or directory g++: error: link:: No such file or directory make: *** [/home/a_amouzandeh/foam/foam-extend-4.0/wmake/Makefile:188: /home/a_amouzandeh/foam/foam-extend-4.0/lib/linux64GccDPOpt/libfoam.so] Error 1 Appreciate any help! Cheers, Aram ---- Hallo, I am having the same problem on openSuse when compiling OpenFOAM-6! Appreciate your comments! Cheers, Aram Last edited by wyldckat; November 6, 2018 at 19:11. Reason: merged posts a few hours apart |
|
November 6, 2018, 19:13 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: This error message:
Code:
g++: error: libtool:: No such file or directory g++: error: link:: No such file or directory Questions:
__________________
|
|
November 7, 2018, 02:33 |
|
#6 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
Hallo wyldckat,
thanks for answer! Yes, I have followed the instructions given in the links you have posted. I have even explicitely installed libtool and the package including link using Code:
sudo zypper in automake autoconf libtool Cheers, Aram |
|
December 27, 2018, 20:42 |
|
#7 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
I'm rather late, but here are some quick answers I've got so far:
Quote:
Something very wrong is going on with your installation of openSUSE 15.0. I've done a first pass in trying to build foam-extend 4.0 on openSUSE 15.0 and I was able to build the majority of it by following the steps written here: https://openfoamwiki.net/index.php/I...#openSUSE_15.0 - all that isn't building yet is swak4Foam and ParaView, which I'll revise as soon as I can. But in order for libtool and so on to not be found, then either something is broken in the environment "PATH" variable or the foam-extend 4.0 source code folder has been corrupted somehow in your machine? If you still have this problem, then activate the foam-extend 4.0 shell environment and run the following command: Code:
echo $PATH Quote:
|
|||
December 28, 2018, 13:07 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick note: I've finally managed to build everything within foam-extend 4.0 with openSUSE and it's documented here: https://openfoamwiki.net/index.php/I...#openSUSE_15.0
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] foam-extend 3.2 on Ubuntu 12.04, Floating point exception for tutorials | arsalan.dryi | OpenFOAM Installation | 7 | November 14, 2016 17:33 |
[foam-extend.org] core dumped for foam extended 3.2 on Ubuntu 16.04 | qjh888 | OpenFOAM Installation | 9 | September 27, 2016 16:39 |
[foam-extend.org] 3.2 Installation in Debian 8.5 | jsm | OpenFOAM Installation | 2 | June 19, 2016 10:53 |
[waves2Foam] Trying to compile waves2Foam with foam-extend 3.2 on Ubuntu 14.04 | ce73stargazer | OpenFOAM Community Contributions | 8 | May 29, 2016 18:51 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |