- 论坛徽章:
- 0
|
虚拟机装了个SUSE11测试升级openssh
过程如下
linux-1i1o:~ # cd /home/zym/openssl-1.0.2l
linux-1i1o:~ # ./config --prefix=/usr/local/openssl --shared&& make && make install
linux-1i1o:~ # cd /usr/local/openssl/lib >> /etc/ld.so.conf
linux-1i1o:~ # ldconfig
linux-1i1o:~ # cp -p /usr/local/openssl/bin/openssl /usr/bin/openssl
linux-1i1o:~ # cp -p /usr/local/openssl/lib/libssl.so.1.0.0 /lib
linux-1i1o:~ # cp -p /usr/local/openssl/lib/libssl.so.1.0.0 /lib64
linux-1i1o:~ # openssl version -a
OpenSSL 1.0.2l 25 May 2017
built on: reproducible build, date unspecified
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/openssl/ssl"
linux-1i1o:~ # strings /lib/libssl.so.1.0.0 | grep OpenSSL
OpenSSLDie
SSLv3 part of OpenSSL 1.0.2l 25 May 2017
TLSv1 part of OpenSSL 1.0.2l 25 May 2017
DTLSv1 part of OpenSSL 1.0.2l 25 May 2017
OpenSSL 1.0.2l 25 May 2017
linux-1i1o:~ # strings /lib64/libssl.so.1.0.0 | grep OpenSSL
OpenSSLDie
SSLv3 part of OpenSSL 1.0.2l 25 May 2017
TLSv1 part of OpenSSL 1.0.2l 25 May 2017
DTLSv1 part of OpenSSL 1.0.2l 25 May 2017
OpenSSL 1.0.2l 25 May 2017
----以上升级openssl完成
linux-1i1o:~ # ./configure --prefix=/usr/local/openssh --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/openssl --with-zlib=/usr/local/zlib --with-md5-passwords --without-hardening
checking OpenSSL header version... 100020cf (OpenSSL 1.0.2l 25 May 2017)
checking OpenSSL library version... configure: error: OpenSSL >= 1.0.1 required (have "1000003f (OpenSSL 1.0.0c 2 Dec 2010)")
编译openssh的时候报错ssl的库文件和头文件版本不一致,试了一下下午没找到解决方法。
有知道的请指导一下,谢谢。
|
|