CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[foam-extend.org] 3.1 and 3.2 in Ubuntu 14.04: cannot find "-lfoam"

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By disney
  • 1 Post By mAlletto
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2016, 05:12
Default 3.1 and 3.2 in Ubuntu 14.04: cannot find "-lfoam"
  #1
New Member
 
Join Date: May 2013
Posts: 2
Rep Power: 0
disney is on a distinguished road
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.
The first critical error with the warning "conflicting installations" gives me the feeling that openfoam is looking in "/bin/" for gcc and in my system its in "/usr/bin". So I reorganized my links to gcc and g++ to reside in "/bin/". After running foamInstallationTest again, I get rid of the first critical error and I am left with only 1 critical error (which I don't understand):

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.
I'm stuck here and have no success since three days. Could someone please help me with the installation?

Many thanks!

Last edited by disney; November 27, 2016 at 08:49.
disney is offline   Reply With Quote

Old   November 28, 2016, 07:50
Default issue solved
  #2
New Member
 
Join Date: May 2013
Posts: 2
Rep Power: 0
disney is on a distinguished road
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.
wyldckat likes this.
disney is offline   Reply With Quote

Old   August 25, 2018, 03:48
Default
  #3
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
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.
wyldckat likes this.
mAlletto is offline   Reply With Quote

Old   November 5, 2018, 04:58
Default
  #4
Senior Member
 
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17
mabinty is on a distinguished road
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
Searching (and finding some hints) on the web for similar errors did not solve the problem. Maybe someone has an idea.

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
mabinty is offline   Reply With Quote

Old   November 6, 2018, 19:13
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: This error message:
Code:
g++: error: libtool:: No such file or directory
g++: error: link:: No such file or directory
seem to be implying that the applications "libtool" and "link" are not installed.

Questions:
  1. Did you run the installation commands indicated at https://openfoamwiki.net/index.php/I...d-4.0/openSUSE ??
  2. What about the commands instructed at https://openfoam.org/download/source...r-compilation/ ?
__________________
wyldckat is offline   Reply With Quote

Old   November 7, 2018, 02:33
Default
  #6
Senior Member
 
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17
mabinty is on a distinguished road
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
Unfortunately it did not help ...

Cheers,
Aram
mabinty is offline   Reply With Quote

Old   December 27, 2018, 20:42
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I'm rather late, but here are some quick answers I've got so far:
Quote:
Originally Posted by mabinty View Post
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.

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
and provide its output. It will show what is defined in that environment variable and perhaps tell us if there is anything wrong, for example, any spaces or special characters.


Quote:
Originally Posted by mabinty View Post
I am having the same problem on openSuse when compiling OpenFOAM-6!
I've successfully built it on openSUSE 15.0 and wrote about it here: https://openfoamwiki.net/index.php/I...SUSE_Leap_15.0
wyldckat is offline   Reply With Quote

Old   December 28, 2018, 13:07
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
mAlletto likes this.
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:22.