ubuntu configure: error: Cannot find ssl libraries

问题:
安装软件一直提示configure: error: Cannot find ssl libraries.百度后,所需软件挨着安装一遍还是报这个错.

解决方式:
1.通过dpkg -L libssl-dev命令检查是否真安装了ssl,安装过的会有一个libssl.so文件.
2.通过link整到需要的目录就行.ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/libssl.so

参考:
转自:http://ubuntuforums.org/showthread.php?t=1975917

i have installed nagios and i want to install nrpe. While installing NRPE, when i execute (/home/abc/nrpe/configure)

Code:
./configure
it stops after reaching the following line

Code:
...
checking for type of socket size... size_t
checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl libraries
I have installed libssl-dev and openssl package as i found them as a solution for this error.

I tried the following option also

Code:
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib
But the error remains.

What can be the possible solution for this ? I am using ubuntu 12.04 as my operating system. Thanks in advance.
Thanks & Regards
Ankur M Trapasiya
Advanced replyAdv Reply 
May 8th, 2012#2
safwanlmu
safwanlmu is offlineFirst Cup of Ubuntu
Join Date
Sep 2011
Beans
2
Re: nagios- nrpe installation error(configure: error: Cannot find ssl libraries)

Make a link of the libssl.so.version to libssl.so. I was able to install nrpe using this on oneric.

cd /usr/lib

ln -s libssl.so.0.9.8 libssl.so
Advanced replyAdv Reply 
May 8th, 2012#3
RHAnthony
RHAnthony is offline5 Cups of Ubuntu
Join Date
Apr 2007
Beans
Hidden!
Re: nagios- nrpe installation error(configure: error: Cannot find ssl libraries)

I am still having the issue as well after installing libssl-dev, and I also can not see any ssl files in /usr/lib


Code:
root@aspen:/usr/lib# sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@aspen:/usr/lib# ls libssl*
ls: cannot access libssl*: No such file or directory
root@aspen:/usr/lib#
I then put in this command
Code:
dpkg -L libssl-dev
... which showed a libssl.so inside of /usr/lib/x86_64-linux-gnu/

I made a link to it with:
Code:
ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/libssl.so
..and then was able to configure and make my nrpe install!

猜你喜欢

转载自sanyecao2314.iteye.com/blog/2217215