Your OpenSSL headers do not match your library


2022年4月9日
23:37

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.

報錯為ssl 文件庫文件和頭文件不相符。
通過查看 提示中的 contrib/findssl.sh  查看讀取方式
發現庫文件存在lib和lib64 其中 lib64中的文件后綴為so.3
Lib文件中為so.1.1  有可能是為了同時兼容1.1.1版本的openssl
我修改了/etc/ld.conf
文件中關於庫的配置發現沒有生效
於是猜想 openssh.spec文件配置優先級可能更高且默認為lib文件夾
於是在庫配置項上添加了lib64  (庫配置項見 另一篇隨筆)
再次執行編譯成功進行下去了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM