compile problem openssh-6.6p1

Scott Neugroschl scott_n at
Sat Sep 20 01:43:36 EST 2014

> First I compile and install openssl-1.0.1i to /opt/openssl and the same for zib-1.2.8.
> Then I compile openssh-6.6p1 on CentOS 6.5 x86_64.
> ./configure --prefix=/opt/openssh --with-ssl-dir=/opt/openssl --with-xauth=/usr/bin/xauth --with-zlib=/opt/zlib It stops with this errors:
> checking openssl/opensslv.h usability... no checking openssl/opensslv.h presence... no checking for openssl/opensslv.h... no
> configure: error: *** OpenSSL headers missing - please install first or check config.log ***
> I think there is something wrong with file "configure" because:
> - openssh-6.4p1 compiles fine (v6.5 has the same problem as v6.6)
> - when I put file "configure" from v6.4 to v6.6 compiles fine
> - when I do yum install openssl-devel (v1.0.1e) and compile v6.6 it uses header files from openssl-1.0.1e (and not 1.0.1i from /opt/openssl dir) => it looks like ignoring --with-ssl-dir=/opt/openssl option
> Could you please check what is wrong with configure since v6.5? I am not programmer but just admin.

I've ran into this too.  I believe that configure automatically checks /usr/local for OpenSSL, even if you specify -with-ssl-dir.  IMHO this is a bug with configure.
The same thing happens with ZLIB.

More information about the openssh-unix-dev mailing list