【发布时间】:2018-07-07 16:23:30
【问题描述】:
我基于16.04,尝试从源码安装openssh
sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz"
tar xfz openssh-7.4p1.tar.gz
cd openssh-7.4p1
./configure
在尝试配置时,我收到以下错误消息:
checking OpenSSL header version... 10101000 (OpenSSL 1.1.1-dev xx XXX xxxx)
checking OpenSSL library version... not found
configure: error: OpenSSL library not found.
检查路径 /usr/local/ssl# ls 显示以下文件
证书 ct_log_list.cnf.dist openssl.cnf 私有 ct_log_list.cnf misc openssl.cnf.dist
我已经安装了 libssl 库,但我不知道为什么它没有找到 openssl 库。
如何解决
【问题讨论】:
-
试试
configure --help。注意--with-openssl-dir和--with-zlib。我上次检查 OpenSSH 时没有针对 OpenSSL 1.1.0 构建。另请参阅 OpenSSH PR 48, Make it build using OpenSSL 1.1.0。如果这是您的问题,那么您应该退回到 OpenSSL 1.0.2。另请参阅 OpenSSL wiki 上的 OpenSSL 1.1.0 Changes。最后,我相信 OpenSSL 7.6p1 是最新的。 -
您可能还对Noloader Build-Scripts 感兴趣。它可以使用最新的 OpenSSL 1.0.2 为您构建 OpenVPN。
-
有什么解决办法吗?我得到了同样的错误,我安装了 openssl 1.0.2o,我将
--with-ssl-dir=/usr/local/openssl-1.0.2o添加到配置标志中。