Centos 6 - 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux I'm trying to compile openssh-9.9p2. I compiled openssl-3.0.16 in /usr/local. ./configure? --prefix=/usr --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local I'm getting: |checking for openssl... /usr/local/bin/openssl checking for openssl/opensslv.h... yes checking OpenSSL header version... 30000100 (OpenSSL 3.0.16 11 Feb 2025) checking for OpenSSL_version... no checking for OpenSSL_version_num... no checking OpenSSL library version... not found configure: error: OpenSSL library not found. I tried superuser.com but only got one response. https://superuser.com/questions/1884767/how-can-i-fix-openssl-version-no-and-openssl-version-num-when-compiling-o?noredirect=1#comment2977271_1884767 | Stan Dickerson -------------- next part -------------- A non-text attachment was scrubbed... Name: stan.vcf Type: text/vcard Size: 361 bytes Desc: not available URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20250310/aacfc0ec/attachment.vcard>
On Tue, 11 Mar 2025 at 03:13, Stan Dickerson <stan at energycontrolsystems.com> wrote:> Centos 6 - 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 > x86_64 x86_64 x86_64 GNU/Linux > > I'm trying to compile openssh-9.9p2. I compiled openssl-3.0.16 in > /usr/local. > > ./configure --prefix=/usr --with-pam --with-selinux > --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh > --with-ssl-dir=/usr/local > > I'm getting: > > |checking for openssl... /usr/local/bin/openssl checking for > openssl/opensslv.h... yes checking OpenSSL header version... 30000100 > (OpenSSL 3.0.16 11 Feb 2025) checking for OpenSSL_version... no checking > for OpenSSL_version_num... no checking OpenSSL library version... not > found configure: error: OpenSSL library not found. >The actual reason will be in config.log (you'll need to scroll a fair way back) but it's probably that /usr/local/lib is not in the runtime linker's path. One way to fix that is to tell the linker to add it with: ./configure --with-ssl-dir=/usr/local --with-rpath=-Wl,-rpath, (note that the trailing comma is significant) -- Darren Tucker (dtucker at dtucker.net) GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Try this ./configure --prefix=/usr --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/openssl Or this PKG_CONFIG_PATH='/usr/local/lib/pkgconfig:/usr/local/openssl/lib64/pkgconfig' ./configure --prefix=/usr --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local It might fix it. I use it on centOS 7 and it works just fine. Zak. On 2025-03-10 16:10, Stan Dickerson wrote:> Centos 6 - 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 > x86_64 x86_64 x86_64 GNU/Linux > > I'm trying to compile openssh-9.9p2. I compiled openssl-3.0.16 in > /usr/local. > > ./configure --prefix=/usr --with-pam --with-selinux > --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh > --with-ssl-dir=/usr/local > > I'm getting: > > |checking for openssl... /usr/local/bin/openssl checking for > openssl/opensslv.h... yes checking OpenSSL header version... 30000100 > (OpenSSL 3.0.16 11 Feb 2025) checking for OpenSSL_version... no > checking for OpenSSL_version_num... no checking OpenSSL library > version... not found configure: error: OpenSSL library not found. > > I tried superuser.com but only got one response. > > https://superuser.com/questions/1884767/how-can-i-fix-openssl-version-no-and-openssl-version-num-when-compiling-o?noredirect=1#comment2977271_1884767 > > | > Stan Dickerson > > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
I tried these suggestions ./configure --with-ssl-dir=/usr/local --with-rpath=-Wl,-rpath, ./configure? --prefix=/usr --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/openssl PKG_CONFIG_PATH='/usr/local/lib/pkgconfig:/usr/local/openssl/lib64/pkgconfig' ./configure? --prefix=/usr --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local Finally, this worked. ./configure --prefix=/usr --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/openssl-3.0.16/ Then I had to comment?two lines in /etc/ssh/sshd_config: # GSSAPI options #GSSAPIAuthentication yes #GSSAPICleanupCredentials yes Then make install succeeded.? I haven't quite finished making the new compiles effective. Thanks Stan Dickerson On 3/10/25 09:10, Stan Dickerson wrote:> Centos 6 - 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 > x86_64 x86_64 x86_64 GNU/Linux > > I'm trying to compile openssh-9.9p2. I compiled openssl-3.0.16 in > /usr/local. > > ./configure? --prefix=/usr --with-pam --with-selinux > --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh > --with-ssl-dir=/usr/local > > I'm getting: > > |checking for openssl... /usr/local/bin/openssl checking for > openssl/opensslv.h... yes checking OpenSSL header version... 30000100 > (OpenSSL 3.0.16 11 Feb 2025) checking for OpenSSL_version... no > checking for OpenSSL_version_num... no checking OpenSSL library > version... not found configure: error: OpenSSL library not found. > > I tried superuser.com but only got one response. > > https://superuser.com/questions/1884767/how-can-i-fix-openssl-version-no-and-openssl-version-num-when-compiling-o?noredirect=1#comment2977271_1884767 > > > | > Stan Dickerson-------------- next part -------------- A non-text attachment was scrubbed... Name: stan.vcf Type: text/vcard Size: 361 bytes Desc: not available URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20250311/ad454faf/attachment.vcard>