debian7源码安装nrpe时Cannot find ssl libraries及解决办法

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,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值