之前都是在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了
本文出自 “7928217” 博客,请务必保留此出处http://7938217.blog.51cto.com/7928217/1660838
debian7源码安装nrpe时Cannot find ssl libraries及解决办法
原文地址:http://7938217.blog.51cto.com/7928217/1660838