1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
我的博客已迁移到xdoujiang.com请去那边和我交流 之前都是在debian5上安装nrpe 这次在debian7上安装就出现以下错误 checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl libraries
1、官网 https: //www .nagios.org/
2、下载nrpe-2.12. tar .gz
axel -n 10 http: //sourceforge .net /projects/nagios/files/nrpe-2 .x /nrpe-2 .12 /nrpe-2 .12. tar .gz
3、创建用户 groupadd nagios useradd -m -s /bin/false -g nagios nagios
4、解压并编译安装 tar zxvf nrpe-2.12. tar .gz
cd nrpe-2.12
. /configure --prefix= /opt/nagios
checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl libraries
出现以上错误信息 dpkg -l | grep ssl
ii libssl-dev 1.0.1e-2+deb7u16 amd64 SSL development libraries, header files and documentation ii libssl-doc 1.0.1e-2+deb7u16 all SSL development documentation documentation ii libssl1.0.0:amd64 1.0.1e-2+deb7u16 amd64 SSL shared libraries ii openssl 1.0.1e-2+deb7u16 amd64 Secure Socket Layer (SSL) binary and related cryptographic tools ii ssl-cert 1.0.32 all simple debconf wrapper for OpenSSL
包已经安装了 但为什么还是没找到相关的ssl libraries是因为只找了 /usr 这个目录
dpkg -L libssl-dev /. /usr /usr/lib /usr/lib/x86_64-linux-gnu 而libssl-dev是在 /usr/lib/x86_64-linux-gnu 这个目录下
只要在configure的时候加上--with-ssl-lib= /usr/lib/x86_64-linux-gnu 就行了
. /configure --prefix= /opt --with-ssl-lib= /usr/lib/x86_64-linux-gnu
make all
make install -plugin
make install -daemon
make install -daemon-config
最终解决OK了 |
本文转自 xdoujiang 51CTO博客,原文链接:http://blog.51cto.com/7938217/1660838,如需转载请自行联系原作者