安装nrpe报错Cannot find ssl libraries

来源:互联网 发布:淘宝双十二红包 编辑:程序博客网 时间:2024/05/11 12:55
安装nrpe,编译时出现以下错误:
root@ubuntu1204:/home/nrpe-2.15# ./configure checking for a BSD-compatible install... /usr/bin/install -cchecking build system type... x86_64-unknown-linux-gnu********************************************************checking for type of socket size... size_tchecking for SSL headers... SSL headers found in /usrchecking for SSL libraries... configure: <span style="color:#ff0000;">error: Cannot find ssl libraries</span>
1、是否正确安装ssl
<pre name="code" class="html">root@ubuntu1204:/home/nrpe-2.15# <span style="color:#ff0000;">apt-get install openssl</span>Reading package lists... DoneBuilding dependency tree       Reading state information... Doneopenssl is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@ubuntu1204:/home/nrpe-2.15#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 2 not upgraded.
发现ssl是已经正确安装了的。
2、执行下列命令
<pre name="code" class="html">root@ubuntu1204:/home/nrpe-2.15# <span style="color:#ff0000;">dpkg -L libssl-dev</span>/./usr/usr/lib/usr/lib/x86_64-linux-gnu/usr/lib/x86_64-linux-gnu/pkgconfig/usr/lib/x86_64-linux-gnu/pkgconfig/libcrypto.pc/usr/lib/x86_64-linux-gnu/pkgconfig/openssl.pc/usr/lib/x86_64-linux-gnu/pkgconfig/libssl.pc/usr/lib/x86_64-linux-gnu/libssl.a/usr/lib/x86_64-linux-gnu/libcrypto.a
... ... ... ...
root@ubuntu1204:/home/nrpe-2.15# <span style="color:#ff0000;">./configure --with-ssl-lib=/usr/lib/x86_64-linux-gnu</span>checking for a BSD-compatible install... /usr/bin/install -cchecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking for gcc... gccchecking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ANSI C... none neededchecking whether make sets $(MAKE)... yes
********************************************************


*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
.....+.....................................++*++*++*++*++*++*
checking for Kerberos include files... could not find include files
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating src/Makefile
config.status: creating package/solaris/Makefile
config.status: creating init-script
config.status: creating init-script.debian
config.status: creating init-script.suse
config.status: creating nrpe.spec
config.status: creating sample-config/nrpe.cfg
config.status: creating sample-config/nrpe.xinetd
config.status: creating include/config.h




*** Configuration summary for nrpe 2.15 09-06-2013 ***:


 General Options:
 -------------------------
 NRPE port:    5666
 NRPE user:    nagios
 NRPE group:   nagios
 Nagios user:  nagios
 Nagios group: nagios




Review the options above for accuracy.  If they look okay,
type 'make all' to compile the NRPE daemon and client.
编译成功!
0 0
原创粉丝点击