RedHat Enterprise Linux 8 版本静默安装 Oracle 数据库软件时,提示缺少 libnsl.so.1
目录
1. 问题
2. 原因
3. 解决
1. 问题
静默安装数据库软件时,提示缺少库文件
[oracle@henry dbhome_1]$ ./runInstaller -silent -force -noconfig -responseFile /u01/app/oracle/product/19.0.0/dbhome_1/install/response/db_install.rsp \ > oracle.install.option=INSTALL_DB_SWONLY \ > ORACLE_HOSTNAME=henry \ > UNIX_GROUP_NAME=oinstall \ > INVENTORY_LOCATION=/u01/app/oraInventory \ > SELECTED_LANGUAGES=en,en_GB \ > ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1 \ > ORACLE_BASE=/u01/app/oracle \ > oracle.install.db.InstallEdition=EE \ > oracle.install.db.OSDBA_GROUP=dba \ > oracle.install.db.OSOPER_GROUP=oper \ > oracle.install.db.OSBACKUPDBA_GROUP=dba \ > oracle.install.db.OSDGDBA_GROUP=dba \ > oracle.install.db.OSKMDBA_GROUP=dba \ > oracle.install.db.OSRACDBA_GROUP=dba \ > SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \ > DECLINE_SECURITY_UPDATES=true /u01/app/oracle/product/19.0.0/dbhome_1/perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
2. 原因
缺少库文件
[oracle@henry dbhome_1]$ ldd /u01/app/oracle/product/19.0.0/dbhome_1/perl/bin/perl linux-vdso.so.1 (0x00007ffd40bc9000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4d0f258000) libnsl.so.1 => not found libdl.so.2 => /lib64/libdl.so.2 (0x00007f4d0f054000) libm.so.6 => /lib64/libm.so.6 (0x00007f4d0ecd2000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f4d0eaa9000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f4d0e8a5000) libc.so.6 => /lib64/libc.so.6 (0x00007f4d0e4e1000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4d0e2c9000) /lib64/ld-linux-x86-64.so.2 (0x00007f4d0f478000)
3. 解决
安装库包
[root@henry ~]# dnf install libnsl
扩展:DNF 即将取代 YUM,相关内容请自行查询。