Oracle その他

RHEL8 環境で Oracle インストール (runInstaller) 実行時にエラー発生|perl: error while loading shared libraries: libnsl.so.1

事象

Oracle インストール runInstaller 実行時に以下エラーが発生

perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

[oracle@myhost ~]$ '/opt/oracle/product/19c/dbhome_1/runInstaller' 
/opt/oracle/product/19c/dbhome_1/perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

回避策

dnf install -y libnsl

実行例
[root@myhost]# dnf install -y libnsl
Updating Subscription Management repositories.
Last metadata expiration check: 3:41:25 ago on Wed 09 Mar 2022 08:36:10 AM CST.
Dependencies resolved.
=====================================================================================================================================================================
 Package                         Architecture                    Version                                Repository                                              Size
=====================================================================================================================================================================
Installing:
 libnsl                          x86_64                          2.28-164.el8                           rhel-8-for-x86_64-baseos-rpms                          103 k

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

Total download size: 103 k
Installed size: 160 k
Downloading Packages:
libnsl-2.28-164.el8.x86_64.rpm                                                                                                       357 kB/s | 103 kB     00:00    
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                355 kB/s | 103 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                             1/1 
  Installing       : libnsl-2.28-164.el8.x86_64                                                                                                                  1/1 
  Running scriptlet: libnsl-2.28-164.el8.x86_64                                                                                                                  1/1 
  Verifying        : libnsl-2.28-164.el8.x86_64                                                                                                                  1/1 
Installed products updated.

Installed:
  libnsl-2.28-164.el8.x86_64                                                                                                                                         

Complete!

dnfコマンドとは

Dandified yumことで、RHEL8(CentOS8) から有効となる次世代YUM パッケージマネジャーのこと

The dnf package manager in Linux - A complete reference - LinuxForDevices
The dnf package manager in Linux - A complete reference - LinuxForDevices

www.linuxfordevices.com

この記事が役に立ったという方は
ボタンをポチッとしてくれたら喜びます

-Oracle, その他
-,