Problems with "cannot find -liberty"
Hello,
I'm having the famous problem of "cannot find -liberty" when I'm making the foam-extended 3.0 installation. I've already checked almost every post about this issue, and I cannot find a solution. All posts I read suggest that you must install the binutils-dev package. However, I already have it installed. I've just installed the Ubuntu 14.04, and I'm not sure if there some kind of incompatibility or something like that. I'm sorry to bring up this problem again, but I'm starting to give up the installation. Thanks |
Greetings Nicolao,
It would seem that the Google force is not strong in you ;) I Googled just now for this: Code:
FOAM extend 3.0 ubuntu 14.04 If you look for "Ubuntu 14.04" on that page, you'll see what packages are needed to be installed. The list looks nearly identical to all other Ubuntu's, except the new package is called "libiberty-dev". This has been available on that wiki page since the 18th of April ;) Best regards, Bruno |
Thank you Bruno!
It worked just fine! |
Hi Nicolao and Bruno
I recently updated to Ubuntu 15.01 and was making the foam-extend-3.2 installation. I kept on getting the famous 'cannot find -liberty' error (which I was able to resolve thanks to Bruno's post :)) however, I am also getting 'cannot find -lfoam' error. I have searched a lot online but I couldnt find anything that would fix this error, maybe I am not looking in the right direction. :confused: Do you guys know what could be causing this 'cannot find -lfoam' error? Thanks. |
Quote:
|
Dear Bruno,
I'm installing foam-extend 3.2.x on a workstation with Ubuntu-12, as non-root. So I made the appropriate modifications in etc/prefs.sh to use third party software and use FOAM as compiler. in etc/prefs.sh: Code:
export WM_COMPILER=Gcc49 Code:
/usr/bin/ld: cannot find -liberty. Thanks in advance. Best Ali |
Quick answer @Ali: I don't have time to fully test this, but please try the following steps:
Code:
foam Code:
foam Code:
./Allwmake > log.make 2>&1 |
1 Attachment(s)
Quote:
Thanks for your reply. Please find the log file attached with this post. Thanks again Pankaj |
Hi Pankaj,
Quote:
Because the error message that you are getting is because the "libfoam.so" was built with the name "libOpenFOAM.so"!? To solve this issue, got into the foam-extend-3.2 folder: Code:
foam Then run "Allwmake" once again, the same way you did before. Best regards, Bruno |
Quote:
Thanks for your prompt reply. Your recommended change fixed the problem and I was able to build it successfully. I think I changed that line in a desperate attempt to fix the installation build (before i found this post) and forgot about it. :o Thanks again for your help, I really appreciate it. Pankaj |
Dear Bruno,
As always you're awesome! It worked, it just gives the following warning at the end which says that it is for "project developers"; whatever that means. Best Ali Code:
CMake Warning (dev) at CMakeLists.txt:54 (TARGET_LINK_LIBRARIES): |
Quote:
|
Bruno,
Removing all references to -liberty from the wmake/rules/*/general files resolved this issue for me. Thanks for the suggestion. |
Greetings Dan,
Many thanks for the feedback and reminder! I'm testing now on Ubuntu 16.04 and I'll make a pull request for the "nextRelease" branch at foam-extend 3.2 for this, so that they can do a larger build test. I never really understood why we were ever depending on the "libiberty.so" library. Best regards, Bruno |
All times are GMT -4. The time now is 14:22. |