整体的报错是这样的

checking OpenSSL library version... 1010104f (OpenSSL 1.1.1d  10 Sep 2019)
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.
    
openssh编译失败,请检查

 

解决方案如下:

打开文件vim /etc/ld.so.conf

.

.

将文件中带有 1.1.1d的行注释就可以了

还有/usr/local/ssl/lib行也可以注释掉(补充)

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐