I am installing a newer version of openssh on to an ubuntu server (raring 13.04)
I have set export LDFLAGS="-I/usr/lib-I/usr/local/lib"
And when running my ./configure
statement which is
./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
The output ends:
.....
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.
I tried a tip suggesting changing LDFLAGS to
export LDFLAGS="-L/usr/lib/libssl.so -/usr/lib/libcrypto.so"
to force use of one library
But then when I run the ./configure command I get
.........
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
Dose any one have any further thoughts?
The solution is pretty easy. A lot of people face this problem, so i thought of sharing how i solved it hoping it helps someone out there especially with the issue with the "heart bleed bug". If you have this trying to compile openssl for example:
Solution:
Locate the openssl tarball and rebuild it as shown below.
Recompile openssh
Verify installation and restart the sshd daemon
you may have to log out of your ssh session and log back in, then do
ssh -V
again.