嘗試在 CentOS 上建置 OpenSSL 時設定錯誤

嘗試在 CentOS 上建置 OpenSSL 時設定錯誤

我有一個 Centos 5.7 作業系統盒子,我已經成功安裝了 OpenSSL 1.0.1h。但是當我升級 OpenSSH 時,我在執行 ./configure 時收到以下錯誤訊息。請幫我解決這個問題,如果您有任何疑問,請告訴我。

checking whether snprintf correctly terminates long strings... yes
checking whether snprintf can declare const char *fmt... yes
checking whether system supports SO_PEERCRED getsockopt... yes
checking for (overly) strict mkstemp... yes
checking if openpty correctly handles controlling tty... yes
checking whether getpgrp requires zero arguments... yes
checking OpenSSL header version... 1000108f (OpenSSL 1.0.1h 5 Jun 2014)
checking OpenSSL library version... 90802f (OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008)
checking whether OpenSSL's headers match the library... no
configure: error: Your OpenSSL headers do not match your
library. Check config.log for details.
If you are sure your installation is consistent, you can disable the check
by running "./configure --without-openssl-header-check".
Also see contrib/findssl.sh for help identifying header/library mismatches.

答案1

....我已經安裝了 OpenSSL 1.0.1h ...

是的,但僅限標題版本。你的圖書館是靜止的0.9.8e-fips-rhel51.0.1h不像你的標題。您需要為您的標頭安裝相符的庫。
看起來你是OpenSSL 1.0.1h手動安裝的,而且0.9.8e-fips-rhel5似乎是 rhel 版本。 rhel-version 可能是透過套件管理安裝的。也許您只需要卸載0.9.8evia yum remove openssl-libs。然後檢查是否OpenSSL 1.0.1h檢測到您的庫(我假設您安裝了 header + lib)。如果沒有,請OpenSSL 1.0.1h再次安裝 -libs。

相關內容