錯誤:未找到 OpenSSL 函式庫。當我安裝了 openssl 並且 libssl.so 位於 /usr/local/lib 時

錯誤:未找到 OpenSSL 函式庫。當我安裝了 openssl 並且 libssl.so 位於 /usr/local/lib 時

我正在嘗試編譯裂紋在 ubuntu 16.04 上

為了獲取所有依賴項,我從原始程式碼安裝了 opensll 1.1.0h,當我運行./configurencrack時,我不斷收到此錯誤

checking OpenSSL header version... 1010008f (OpenSSL 1.1.0h  27 Mar 2018)
checking OpenSSL library version... not found
configure: error: OpenSSL library not found.
configure: error: ./configure failed for opensshlib

我已經嘗試過的解決方案:

  • 重新安裝openssl
  • apt install libssl-dev
  • ldconfig/usr/local/lib添加到後/etc/ld.so.conf
  • ./configure --with-openssl=/usr/local --with-libopenssh=/usr/local
  • 我嘗試了另一個 ubuntu 16.06 盒子並且它可以編譯,為什麼會失敗?

如果你想檢查ncrack原始碼和configure.ac文件,它們都在https://github.com/nmap/ncrack

相關內容