compiling on an older system (Centos 6)

Stan Dickerson stan at energycontrolsystems.com
Wed Mar 12 10:07:09 AEDT 2025


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>


More information about the openssh-unix-dev mailing list