-
下载 openssl-1.1.1a 进行编译。
[root@mc0-0002 etc]# wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz
tar -zxvf openssl-1.1.1a.tar.gz
cd openssl-1.1.1a/
./config shared enable-ssl3 enable-ssl3-method
make install
-
检查新编译的文件是否包含 SSLv3_client_method。
[root@mc0-0002 openssl-1.1.1a]# nm libssl.so.1.1 | grep SSLv3_client_method
0000000000020800 T SSLv3_client_method
编译完成后是有SSLv3_client_method
-
使用编译好的 libssl.so.1.1 替换原来的 libssl.so.1.1。
[root@mc0-0002 openssl-1.1.1a]# cp /etc/openssl-1.1.1a/libssl.so.1.1 /usr/local/etc/lib/
cp: overwrite '/usr/local/lib/libssl.so.1.1'? y
至此,位于原/usr/local/lib/目录下的/usr/local/lib/libssl.so.1.1 文件正常,可使用 yum 安装 unixODBC 了
-
使用 yum 安装 unixODBC。
[root@mc0-0002 odbc_connection]# yum install -y unixODBC
Last metadata expiration check: 0:12:31 ago on Thu 23 Mar 2023 05:33:19 PM CST.
Dependencies resolved.
==================================================================================================
Package Architecture Version Repository Size
==================================================================================================
Installing:
unixODBC aarch64 2.3.7-2.ky10 ks10-adv-os 389 kTransaction Summary
==================================================================================================
Install 1 PackageTotal download size: 389 k
Installed size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
unixODBC-2.3.7-2.ky10.aarch64.rpm 4.8 MB/s | 389 kB 00:00
--------------------------------------------------------------------------------------------------
Total 4.7 MB/s | 389 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : unixODBC-2.3.7-2.ky10.aarch64 1/1
Running scriptlet: unixODBC-2.3.7-2.ky10.aarch64 1/1
/sbin/ldconfig: /usr/local/lib/libkrb5support_gauss.so.0 is not a symbolic link/sbin/ldconfig: /usr/local/lib/libcom_err_gauss.so.3 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libpq_ce.so.5 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libk5crypto_gauss.so.3 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libodbcinst.so.2 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libpq.so.5 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libgssapi_krb5_gauss.so.2 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libkrb5_gauss.so.3 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libgssrpc_gauss.so.4 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libkrb5support_gauss.so.0 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libcom_err_gauss.so.3 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libpq_ce.so.5 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libk5crypto_gauss.so.3 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libodbcinst.so.2 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libpq.so.5 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libgssapi_krb5_gauss.so.2 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libkrb5_gauss.so.3 is not a symbolic link
/sbin/ldconfig: /usr/local/lib/libgssrpc_gauss.so.4 is not a symbolic link
Verifying : unixODBC-2.3.7-2.ky10.aarch64 1/1
Installed:
unixODBC-2.3.7-2.ky10.aarch64Complete!
[root@mc0-0002 odbc_connection]#