Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-30-2007, 04:02 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
gmake error [2] "/usr/bin/ld cannot find -lmpi_f77

Howdy folks,

So, I'm attempting to build a climate model on my Redhat equiped machine. ./configure works fine and instructs me run gmake. Running gmake exits with the error "/usr/bin/ld cannot find -lmpi_f77". Of course, this library exists and I believe my configuration script tells the linker where to find it (e.g. LIB =-L../usr/local/openmpi/lib -lmpi_77). I've run into this problem before and fixed it by making symbolic links with names the linker recognizes, editing to include additional library paths or even setting LD_LIBRARY_PATH (a poor option, I know). None of these seem to be working in the present context. The folks who wrote the source code I'm building from have been slow to respond so I'm taking it to the larger community in the hopes that someone has run into a similar problem. I should add the caveat that I'm kinda an idiot when it comes to this stuff. Cheers.
Old 08-01-2007, 01:18 AM   #2
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
That trick you mention of making a temporary soft link in a directory the linker is sure to search really should work. If it doesn't, that suggests there might be something wrong with the library file -- check permissions and use the "file" and "ldd" commands to see if it's really a library. Something else to do is capture the line that causes the linker error by mousing over it, put it in a file, edit it as appropriate, then execute just that line. When you get the same error as before, you can experiment, e.g. replacing "-L /usr/local/openmpi/lib -lmpi_77" with "/usr/local/openmpi/lib/" (or similar). As you know, there is probably either something wrong with the library or, more likely, with the way you're referring to it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/bin/ld: cannot find -lusb error?? Hyperion007 Linux - Newbie 5 07-25-2016 08:28 PM
/usr/bin/ld: cannot find -lf2c ??? i don't know how to deal with this error close2me Programming 2 04-17-2007 09:16 PM
Compiling error /usr/bin/ld: cannot find -ltclstub84 OlRoy *BSD 7 01-26-2007 05:24 PM
"gxine" /usr/bin/ld: cannot find -lmozjs behmjoe Linux - Software 9 12-16-2005 01:35 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 07:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration