共計 1612 個字符,預計需要花費 5 分鐘才能閱讀完成。
行業資訊
服務器
debian 安裝 nrpe 時報錯 Cannot find ssl libraries 如何解決
這篇文章主要介紹“debian 安裝 nrpe 時報錯 Cannot find ssl libraries 如何解決”,在日常操作中,相信很多人在 debian 安裝 nrpe 時報錯 Cannot find ssl libraries 如何解決問題上存在疑惑,丸趣 TV 小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”debian 安裝 nrpe 時報錯 Cannot find ssl libraries 如何解決”的疑惑有所幫助!接下來,請跟著丸趣 TV 小編一起來學習吧!
之前都是在 debian5 上安裝 nrpe 這次在 debian7 上安裝就出現以下錯誤
checkingforSSLheaders...SSLheadersfoundin/usr
checkingforSSLlibraries...configure:error:Cannotfindssllibraries
2、下載 nrpe-2.12.tar.gz
axel-n10http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.12/nrpe-2.12.tar.gz
3、創建用戶
groupaddnagios
useradd-m-s/bin/false-gnagiosnagios
4、解壓并編譯安裝
tarzxvfnrpe-2.12.tar.gz
cdnrpe-2.12
./configure--prefix=/opt/nagios
checkingforSSLheaders...SSLheadersfoundin/usr
checkingforSSLlibraries...configure:error:Cannotfindssllibraries
出現以上錯誤信息
dpkg-l|grepssl
iilibssl-dev1.0.1e-2+deb7u16amd64SSLdevelopmentlibraries,headerfilesanddocumentation
iilibssl-doc1.0.1e-2+deb7u16allSSLdevelopmentdocumentationdocumentation
iilibssl1.0.0:amd641.0.1e-2+deb7u16amd64SSLsharedlibraries
iiopenssl1.0.1e-2+deb7u16amd64SecureSocketLayer(SSL)binaryandrelatedcryptographictools
iissl-cert1.0.32allsimpledebconfwrapperforOpenSSL
包已經安裝了但為什么還是沒找到相關的 ssllibraries 是因為只找了 /usr 這個目錄
dpkg-Llibssl-dev
/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
makeall
makeinstall-plugin
makeinstall-daemon
makeinstall-daemon-config
最終解決 OK 了
到此,關于“debian 安裝 nrpe 時報錯 Cannot find ssl libraries 如何解決”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注丸趣 TV 網站,丸趣 TV 小編會繼續努力為大家帶來更多實用的文章!
正文完