opengauss使用yum安装unixODBC时报错怎么办

2023年 9月 27日 55.8k 0

  1. 下载 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

  2. 检查新编译的文件是否包含 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

  3. 使用编译好的 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 了

  4. 使用 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 k

    Transaction Summary
    ==================================================================================================
    Install 1 Package

    Total 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.aarch64

    Complete!
    [root@mc0-0002 odbc_connection]#

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论