LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-30-2012, 10:53 PM   #1
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Rep: Reputation: 15
Help: /usr/bin/ld: cannot find -lcrypt


Hi Everyone:

I am compiling a package (busybox) with static libraries. The linker keeps complaining about:

/usr/bin/ld: cannot find -lcrypt

Originally I thought this was missing a sym link in my /lib and so I added that. Now I have both in /lib:

lrwxrwxrwx. 1 root root 18 Jan 30 20:51 libcrypt.so -> libcrypt-2.14.1.so
lrwxrwxrwx. 1 root root 18 Jan 20 20:40 libcrypt.so.1 -> libcrypt-2.14.1.so

But the problem persists. What's wrong?
 
Old 01-31-2012, 09:26 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,869
Blog Entries: 1

Rep: Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870
Static library would be libcrypt.a
 
1 members found this post helpful.
Old 02-01-2012, 08:31 AM   #3
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by NevemTeve View Post
Static library would be libcrypt.a
yep, you are right! I didn't realize that. Now I installed the package with the static lib and the error is gone.
 
Old 02-02-2012, 06:54 AM   #4
sharique.javaid
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
cannot find -lssl

Hi, when I triedthe command make in Suse, i got this error:


Code:
linux-77sl:/home/covr_admin/Documents/sladinstaller-1.1.2/sladinstaller-1.1.2 # make
g++ -L. -L/usr/local/ssl/lib -L/usr/X11R6/lib -o sladinstaller gtk.o tools.o memorymap.o libssh.a `pkg-config --libs gtk+-2.0` `pkg-config --libs gthread-2.0` `curl-config --libs` -lssl -lcrypto
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lssl
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make: *** [sladinstaller] Error 1

Please suggest!
 
Old 02-02-2012, 09:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
cannot find -lssl


The same again : Install the static libssl.a for your OS.
 
  


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
[SOLVED] bash: /usr/local/bin/xdsi: /usr/bin/wish: bad interpreter: No such file or directory Berwhale Linux - Newbie 2 09-15-2011 02:59 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:12 PM.

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