ogg21c部署在centos6因glibc版本过低无法使用问题

环境
OS:Centos 6.9
ogg版本:21C


问题

[oracle@localhost goldengate21c]$ ./ggsci
./ggsci: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /goldengate21c/instantclient/libnnz21.so)
./ggsci: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /goldengate21c/instantclient/libclntsh.so.21.1)
./ggsci: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /goldengate21c/instantclient/libclntsh.so.21.1)
./ggsci: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /goldengate21c/instantclient/libclntshcore.so.21.1)

解决办法:
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.14.tar.gz
tar -xvf glibc-2.14.tar.gz
tar -xvf glibc-ports-2.14.tar.gz
mv glibc-ports-2.14 glibc-2.14/ports
mkdir glibc-2.14/build
cd glibc-2.14/build
[root@localhost build]#../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
[root@localhost build]# make
[root@localhost build]# make install
最后有些错误,不管看是否可行

验证查看
strings /lib64/libc.so.6 | grep GLIBC

 

 

############################################好像只要升级到2.17,自动会安装2.14版本#######################################

继续升级
[oracle@localhost goldengate21c]$ ./ggsci
./ggsci: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /goldengate21c/instantclient/libclntsh.so.21.1)


[root@localhost glibc]#wget https://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
[root@localhost glibc]# tar -xvf glibc-2.17.tar.gz

#进入glibc-2.17目录中
[root@localhost glibc]# cd glibc-2.17

#创建build目录
[root@localhost glibc-2.17]# mkdir build

#进入build目录中
[root@localhost glibc-2.17]# cd build
#执行./configure
[root@localhost build]#../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

#安装
[root@localhost build]#make
[root@localhost build]#make install

验证查看
strings /lib64/libc.so.6 | grep GLIBC

复制代码
[root@localhost build]# strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_PRIVATE
复制代码

 

posted @   slnngk  阅读(285)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2021-10-11 logminer存储在外部文件(external file)
2021-10-11 logminer分析在线redo log
点击右上角即可分享
微信分享提示