安装DBD-Oracle报错处理

 cd DBD-Oracle-1.83

perl Makefile.PL

make && make install

make编译报错如下:

/bin/ld: 找不到 -lnsl
collect2: 错误:ld 返回 1
make: *** [Makefile:524:blib/arch/auto/DBD/Oracle/Oracle.so] 错误 1

 [root@localhost DBD-Oracle-1.83]#  find / -name libnsl.so
/home/app/lib/stubs/libnsl.so
find: ‘/proc/3594482’: 没有那个文件或目录
find: ‘/proc/3594495’: 没有那个文件或目录
find: ‘/proc/3594512’: 没有那个文件或目录

执行任何命令都报错
[root@localhost DBD-Oracle-1.83]# cd /home/app/lib/stubs/
[root@localhost stubs]# ll libnsl*
ls: libc.so.6: version `GLIBC_2.28' not found (required by ls)
[root@localhost stubs]# ls
ls: libc.so.6: version `GLIBC_2.28' not found (required by ls)
[root@localhost stubs]# yum install -y ls
/usr/libexec/platform-python: libc.so.6: version `GLIBC_2.28' not found (required by /lib64/libpython3.6m.so.1.0)

退出当前目录,恢复正常。

安装 nsl

yum install -y libnsl

[root@node1 keepalived]# rpm -qa|grep libnsl
libnsl-2.28-88.p09.ky10.x86_64

[root@og90 lib]# ll libnsl*
-rwx------ 1 gbase gbase 97344 Mar 31  2023 libnsl-2.17.so
lrwxrwxrwx 1 gbase gbase    14 Mar 31  2023 libnsl.so -> libnsl-2.17.so
lrwxrwxrwx 1 gbase gbase    14 Mar 31  2023 libnsl.so.1 -> libnsl-2.17.so

从其他机器找一个2.17版本安装上去
[root@og90 lib]# scp libnsl-2.17.so 172.20.101.66:/usr/lib64

至此正常编译 make && make install

你可能感兴趣的:(数据库,postgresql,ora2pg,opengauss,DBD-Oracle)