LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-03-2008, 12:55 PM   #1
skubik
Member
 
Registered: May 2003
Location: A dark corner in Canada
Distribution: Slackware64 15.0/current
Posts: 152

Rep: Reputation: 21
Cannot Find -lssl


I've found threads that have addressed this problem before- but I'm a little confused as to why I'm encountering the problem in the first place.
I just tried building AMANDA from source- and during compiling, an error occurred stating that it "cannot find -lssl".
The other day I tried building another package from source (can't remember which) and got the same error.

I have OpenSSL 0.9.8g installed at /usr/local/ssl, and to my recollection, I haven't had problems compiling anything using the SSL library prior to this, and I'm not sure why I'm suddenly having problems.

I have run /sbin/ldconfig numerous times.
My /etc/ld.so.conf looks like:
Code:
/lib
/usr/local/lib
/usr/i486-slackware-linux/lib
/usr/lib/qt/lib
/usr/local/ssl/lib
/usr/local/pgsql/lib
/usr/local/ptlib/lib
...and LD_LIBRARY_PATH is:
Code:
:/usr/local/ssl/lib:/usr/local/pgsql/lib:/usr/local/ptlib/lib:/usr/local/h323plus/lib
contents of /usr/local/ssl/lib are:
Code:
drwxr-xr-x 2 root root    4096 2007-12-16 02:02 engines/
-rw-r--r-- 1 root root 2141214 2007-12-16 02:02 libcrypto.a
lrwxrwxrwx 1 root root      18 2007-12-16 02:02 libcrypto.so -> libcrypto.so.0.9.8*
-r-xr-xr-x 1 root root 1416533 2007-12-16 02:02 libcrypto.so.0.9.8*
-rw-r--r-- 1 root root  377236 2007-12-16 02:02 libssl.a
lrwxrwxrwx 1 root root      15 2007-12-16 02:02 libssl.so -> libssl.so.0.9.8*
-r-xr-xr-x 1 root root  279031 2007-12-16 02:02 libssl.so.0.9.8*
drwxr-xr-x 2 root root    4096 2007-11-25 03:19 pkgconfig/
I'm stumped!

I currently do not have LDFLAGS set- but when I *do* have it set to "-L/usr/local/ssl/lib", I no longer seem to be getting the compilation errors. I guess that makes sense- but why isn't libssl being found in the places it's being told to find it??

Any thoughts or insights??

Thanks,

- skubik.
 
Old 10-03-2008, 12:59 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by skubik View Post
I've found threads that have addressed this problem before- but I'm a little confused as to why I'm encountering the problem in the first place.
I just tried building AMANDA from source- and during compiling, an error occurred stating that it "cannot find -lssl".
The other day I tried building another package from source (can't remember which) and got the same error.

I have OpenSSL 0.9.8g installed at /usr/local/ssl, and to my recollection, I haven't had problems compiling anything using the SSL library prior to this, and I'm not sure why I'm suddenly having problems.
You have OpenSSL installed, but have you installed OpenSSL-devel, the actual development libraries?
 
Old 10-03-2008, 01:23 PM   #3
skubik
Member
 
Registered: May 2003
Location: A dark corner in Canada
Distribution: Slackware64 15.0/current
Posts: 152

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by TB0ne View Post
You have OpenSSL installed, but have you installed OpenSSL-devel, the actual development libraries?
Not to my knowledge- assuming they aren't part of the OpenSSL source itself (I downloaded the OpenSSL source and compiled it). How might I go about obtaining it if it isn't? I've looked around on the ftp for openssl.org and don't see anything besides the source files I downloaded, and things like openssl-engine. Nothing like openssl-devel.
 
Old 10-03-2008, 03:13 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by skubik View Post
Not to my knowledge- assuming they aren't part of the OpenSSL source itself (I downloaded the OpenSSL source and compiled it). How might I go about obtaining it if it isn't? I've looked around on the ftp for openssl.org and don't see anything besides the source files I downloaded, and things like openssl-engine. Nothing like openssl-devel.
openssl-devel is the name of the binary package, which can probably be found in whatever repository you're pulling from. If you compiled everything from source, there should be a configure option to let you build the libraries. Check out the README's or docs that came with openssl...they should have what you need, in more detail than I can provide.
 
  


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
Install Software /usr/bin/ld: cannot find -lssl ERROR baddah Linux - Software 8 06-28-2015 06:09 AM
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 06:19 AM
Is there a way to find recently created/edited files without using find? BrianK Linux - General 2 10-15-2007 09:41 PM
I cannot find what should be very easy to find... a distro with the Gnome desktop bluecog6 Linux - General 3 06-10-2007 07:31 PM
samba (can not find -lssl) slackwbas Slackware 4 08-29-2005 12:58 PM

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

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