LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-11-2010, 05:09 PM   #1
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Rep: Reputation: 15
Missing Library


I'm trying to build third-party code from source and during linking, I receive this error:

Code:
/usr/bin/ld: cannot find -lg2c
collect2: ld returned 1 exit status
Yet, when I look for libg2c in /usr/lib, it's there:

Code:
> ls /usr/lib | grep -i g2c
libg2c.so.0
libg2c.so.0.0.0
So what is the problem? Surely, the linker knows enough to look in /usr/lib, right? Could this be a 32-bit vs 64-bit problem?
 
Old 01-11-2010, 06:07 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Maybe you need to symlink libg2c.so.0.0.0 to libg2c.so ... or you could try adding '-L/usr/lib'

hth
 
Old 01-12-2010, 12:45 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
*

# ln -s libg2c.so.0.0.0 libg2c.so

.. is the solution, that works.
The linker will look for libg2c.so only.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldd reports shared library missing, but library exists on disk athv_gr Linux - Newbie 7 05-13-2009 12:31 PM
Missing Qt-mt library redhat_newbie Linux - Desktop 1 07-19-2007 06:27 AM
Missing Library twantrd Solaris / OpenSolaris 4 12-21-2004 12:16 PM
missing library kholdstayr Slackware 4 12-20-2003 04:56 PM
theres a missing library! e1000 Linux - Software 2 10-22-2003 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 AM.

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