centos6.10,升级openssh openssh-8.0p1 openssl报错,如何解决?

checking for getutxid... yes
checking for getutxline... yes
checking for getutxuser... no
checking for pututxline... yes
checking for setutxdb... no
checking for setutxent... yes
checking for utmpxname... yes
checking for getlastlogxbyname... no
checking for daemon... yes
checking for getpagesize... (cached) yes
checking whether snprintf correctly terminates long strings... yes
checking whether snprintf understands %zu... yes
checking whether vsnprintf returns correct values on overflow... 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 AI_NUMERICSERV is declared... yes
checking for getpgrp... yes
checking if getpgrp accepts zero args... yes
checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking OpenSSL header version... 1010101f (OpenSSL 1.1.1a 20 Nov 2018)
checking for OpenSSL_version... no
checking for OpenSSL_version_num... no
checking OpenSSL library version... not found
configure: error: OpenSSL library not found.
[root@Web-01 openssh-8.0p1]# openssl version
OpenSSL 1.1.1a 20 Nov 2018
You have new mail in /var/spool/mail/root
[root@Web-01 openssh-8.0p1]#

指定openssl的绝对路径,重新编译即可追问

我的openssl 安装在/usr/local/openssl下,我指定了还是不行
./configure --prefix=/usr/ --sysconfdir=/etc/ssh --with-zlib --with-md5-passwords --with-pam --with-openssl=/usr/local/openssl --with-libdir=lib

追答

那就下载rpm包安装吧

温馨提示:答案为网友推荐,仅供参考
相似回答