在 rhel8.0上安装 oracle11g,12c,18c,19c 报 libnsl.so.1 找不到,
一运行 runInstaller,就会报以下错误 :
$ORACLE_HOME/bin/perl:error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
查看库情况:
[oracle@sztech8 db_1]$ ldd /u01/app/oracle/product/19.2.0/db_1/perl/bin/perl
linux-vdso.so.1 (0x00007ffd64d23000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe2d3b35000)
libnsl.so.1 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe2d3931000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe2d35af000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe2d3386000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fe2d3182000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe2d2dbe000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe2d2ba6000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe2d3d55000)
检查
[oracle@sztech8 database]$ ls -ltr /lib64/libnsl*
lrwxrwxrwx. 1 root root 15 Aug 12 21:47 /lib64/libnsl.so.2 -> libnsl.so.2.0.0
-rwxr-xr-x. 1 root root 116408 Aug 12 21:47 /lib64/libnsl.so.2.0.0
确实没有 /lib64/libnsl.so.1
单独安装 libnsl 安装后,这个问题解决:
# dnf install libnsl
[oracle@sztech8 database]$ ls -ltr /lib64/libnsl*
lrwxrwxrwx. 1 root root 15 Aug 12 21:47 /lib64/libnsl.so.2 -> libnsl.so.2.0.0
-rwxr-xr-x. 1 root root 116408 Aug 12 21:47 /lib64/libnsl.so.2.0.0
lrwxrwxrwx. 1 root root 14 Sep 27 22:18 /lib64/libnsl.so.1 -> libnsl-2.28.so
-rwxr-xr-x. 1 root root 150088 Sep 27 22:22 /lib64/libnsl-2.28.so
安装这个包后,该问题解决。
目前rhel8.0 beta版上安装 11g,12c,19c都存在这个问题。看rhel8正式版出来,是否修复这个问题。
|