I keep getting OpenSSL Header Version not found error when compiling OpenSSH Debian Squeeze

10,977

Solution 1

Because I am an idiot.

include /usr/local/ssl/lib is incorrect.

/usr/local/ssl/lib is correct.

It needs to be before the first include

Solution 2

Try --with-ssl-dir=/usr/local/ssl - your prefix for openssl should work.

Share:
10,977

Related videos on Youtube

Dustin Kingen
Author by

Dustin Kingen

Updated on September 18, 2022

Comments

  • Dustin Kingen
    Dustin Kingen over 1 year

    I built Openssl1.0.0d ./config shared no-threads zlib

    It installed fine to the default /usr/local/ssl

    I went and downloaded OpenSSH 5.8p2 and ran ./configure

    but now it keeps giving me a Openssl version header not found error even when I set --with-ssl-dir=

    I've tried it with arguments /usr/local/ssl/include /usr/local/ssl/include/openssl /usr/include /usr/local/ssl/lib

    I looked in config.log and found error: openssl/opensslv.h: no such file or directory which makes little sense since I pointed openssh to where it is store.

    /etc/ld.so.conf

    include /usr/local/ssl/lib

    I'm at a loss at this point.

    Answer (maybe):

    Because I am an idiot.

    include /usr/local/ssl/lib is incorrect.

    /usr/local/ssl/lib is correct.

    It needs to be before the first include.