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 11-25-2010, 12:35 AM   #16
mmrtnt
LQ Newbie
 
Registered: Nov 2006
Location: las vegas, nevada
Distribution: fedora core x
Posts: 25

Rep: Reputation: 8

Quote:
A link is not a real solution.
...
So correct is : Install zlib-devel or whatever name it has on your OS.
I completely agree with this. In my case, as far as I could tell, the installer (RPM) was supposed to set a link, for that particular library. That is not always the case, however.

You should definitely try to install the -dev or -devel package if possible.
 
Old 11-28-2010, 04:32 PM   #17
eastyhasta
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Hi everyone
I have a similar error

/usr/local/arm7/lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [test-sram] Error 1


I am new one programming on linux, so can you help me to fix this error?
Do "-lc" is a library??

Thanks
 
Old 08-05-2011, 10:26 PM   #18
savio_hit
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Rep: Reputation: Disabled
Unhappy cannot find -lmysqld

trying to give make command to our project. But when we are giving make command in ubuntu it gives an error that saying
/usr/bin/ld: cannot find -lmysqld
But installed mysql in ubuntu and all necessary headers.
 
Old 08-06-2011, 04:33 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 18, @ savio_hit : Welcome to LQ.

Please do not ask off topic questions in old threads :
Start a new thread instead :
Like http://www.linuxquestions.org/questi...ux-software-2/ > New Thread.

Ubuntu "lmysqld = libmysqld.a" is provided by the package 'libmysqld-dev'.

sudo apt-get install libmysqld-dev

..
 
Old 11-15-2011, 08:59 AM   #20
sshahab2008
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
/usr/bin/ld: cannot find -lclntsh

# python setup.py build
running build
running build_ext
building 'cx_Oracle' extension
creating build
creating build/temp.linux-x86_64-2.7-11g
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/instantclient_11_1/sdk/include -I/usr/local/include/python2.7 -c cx_Oracle.c -o build/temp.linux-x86_64-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.1.1
In file included from /tmp/instantclient_11_1/sdk/include/oci.h:2968,
from cx_Oracle.c:10:
/tmp/instantclient_11_1/sdk/include/ociap.h:10700: warning: function declaration isnāt a prototype
/tmp/instantclient_11_1/sdk/include/ociap.h:10706: warning: function declaration isnāt a prototype
creating build/lib.linux-x86_64-2.7-11g
gcc -pthread -shared build/temp.linux-x86_64-2.7-11g/cx_Oracle.o -L/tmp/instantclient_11_1 -lclntsh -o build/lib.linux-x86_64-2.7-11g/cx_Oracle.so
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
#




the compiler was looking for "libclntsh.so" and we have libclntsh.so.11.1, i just created sym link libclntsh.so pointing to libclntsh.so.11.1 and added PATH variable with location of that .so file and it found the lnctsh symbol and it compile without error.


python
Python 2.7.2 (default, Nov 8 2011, 13:38:58)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cx_Oracle
>>>
 
Old 11-16-2011, 03:28 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 20, @ sshahab2008 : Welcome to LQ.

See post #19 : Please do not ask off topic questions in another members ( old ) thread.

Quote:
/usr/bin/ld: cannot find -lclntsh
lclntsh = libclntsh.so ( Or libclntsh.a ).

libclntsh.so : Suggest : Make a symlink to libclntsh.so.XX
( libclntsh.so.XX is part of "Oracle-runtime" or similar.

.
 
  


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
/usr/bin/ld: cannot find -lusb error?? Hyperion007 Linux - Newbie 5 07-25-2016 07:28 PM
/usr/bin/ld: cannot find -lqt, make xconfig tuxandme Linux - Software 5 06-19-2005 01:04 PM
/usr/bin/ld error recieved on make jmonolith2001 Linux - Software 4 12-28-2004 03:23 AM
when running make get: usr/bin/ld: cannot find -lart_lgpl_2 nigma Linux - Software 0 02-12-2004 09:22 PM
error compiling cdrtools on kernel 2.6.0: /usr/bin/ld: cannot find -lscg qanopus Linux - Software 1 12-21-2003 08:15 AM

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

All times are GMT -5. The time now is 07:25 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