我正在将更新版本的 openssh 安装到 ubuntu 服务器上(罕见 13.04)
我已经设定 export LDFLAGS="-I/usr/lib-I/usr/local/lib"
当运行我的./configure
声明时
./configure --prefix=/usr --exec_prefix=/usr --libexecdir=/usr/lib/openssh
--sysconfdir=/etc/ssh --datadir=/usr/share/sshd --with-md5-passwords
--with-privsep-path=/var/lib/sshd
输出结束:
.....
checking OpenSSL header version... 1000105f (OpenSSL 1.0.1e 11 Feb 2013)
checking OpenSSL library version... 1000103f (OpenSSL 1.0.1c 10 May 2012)
checking whether OpenSSL's headers match the library... no
configure: error: Your OpenSSL headers do not match your
library. Check config.log for details.
我尝试了一个提示,建议将 LDFLAGS 更改为
export LDFLAGS="-L/usr/lib/libssl.so -/usr/lib/libcrypto.so"
强制使用一个库
但是当我运行 ./configure 命令时,我得到了
.........
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/sas/openssh-6.2p2':
configure: error: C compiler cannot create executables
See `config.log' for more details
任何人有任何进一步的想法吗?