LinuxQuestions.org
Help answer threads with 0 replies.
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 07-14-2009, 10:16 PM   #1
deuxliquid
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
I met an error : /usr/bin/ld: cannot find -lc


Hi all,
I am building a software. I configured it ok but when I run make, I met an error as below:
/usr/bin/ld: cannot find -lc

I don't think there is no glibc in my system.
But I don't understand why it happened
Can someone help me?
Thank you in advance!
Hai
 
Old 07-15-2009, 09:42 AM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
/usr/bin/ld: cannot find -lc
See 'man ld' :
The linker is looking for a library libc.a and doesn't find it.

On my system there are two libraries with this name :
one is part of the glibc package
another one is part of the klibc package.

On some distribution the .a libraries are not parts of the standard package, and need a devel package to be installed alongside (which it is not by default).

So look in these directions and post again if you don't find a solution.
But precise your distribution and the software you intend to build.
 
Old 07-15-2009, 09:49 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,984

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
I would expect that 'ld' is looking for 'libc.so'
which is from the package 'glibc-devel' or
'libc6-dev' depending on the installed OS.
Different names for different Linux's.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....
 
Old 07-15-2009, 04:12 PM   #4
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
Yes it may also be the shared library libc.so which is looked for by the linker.
I have that one also in the same packages as the .a static library.
In Arch Linux there is no devel packages, everything is included in the standard binary packages.
 
  


Reply


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
make error: /usr/bin/ld: cannot find -lXext ryedunn Linux - Software 20 11-16-2011 03:28 AM
fedora 7 error: /usr/bin/ld: cannot find -lXext immortaltechnique Linux - Software 1 02-22-2008 04:02 AM
/usr/bin/ld: cannot find -lf2c ??? i don't know how to deal with this error close2me Programming 2 04-17-2007 08:16 PM
Compiling error /usr/bin/ld: cannot find -ltclstub84 OlRoy *BSD 7 01-26-2007 04:24 PM
/usr/bin/ld: cannot find -lusb error?? Hyperion007 Linux - Newbie 1 08-21-2003 04:16 AM


All times are GMT -5. The time now is 06:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration