How to solve error while loading shared libraries: libnsl.so.1

Hello Friend's,

In this post we will discuss about the solution to error while invoking the installer of 12cR2 on Linux 8.5

So lets get started :

Error : while invoking installer of 12cR2


[grid@dm01db01 gr_home]$ ./gridSetup.sh
/oracle/app/grid/gr_home/perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
[grid@dm01db01 gr_home]$

Steps to install YUM DNF in Linux 8.5 :

HOW TO CREATE LOCAL HTTP YUM/DNF REPOSITORY ON OEL 8

Solution : RPM needed to install


yum install libnsl
yum install libnsl.i686
yum install libnsl2
yum install libnsl2.i686

Detailed steps :


[root@dm01db01 grid]# yum install libnsl
Last metadata expiration check: 1:43:12 ago on Sat 12 Mar 2022 09:47:33 PM IST.
Dependencies resolved.
====================================================================================================================================================================
 Package                            Architecture                       Version                                         Repository                              Size
====================================================================================================================================================================
Installing:
 libnsl                             x86_64                             2.28-164.0.1.el8                                oellabrepo                             104 k

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

Total size: 104 k
Installed size: 160 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                            1/1
  Installing       : libnsl-2.28-164.0.1.el8.x86_64                                                                                                             1/1
  Running scriptlet: libnsl-2.28-164.0.1.el8.x86_64                                                                                                             1/1
  Verifying        : libnsl-2.28-164.0.1.el8.x86_64                                                                                                             1/1

Installed:
  libnsl-2.28-164.0.1.el8.x86_64

Complete!
[root@dm01db01 grid]# yum install libnsl.i686
Last metadata expiration check: 1:43:29 ago on Sat 12 Mar 2022 09:47:33 PM IST.
Dependencies resolved.
====================================================================================================================================================================
 Package                             Architecture                      Version                                        Repository                               Size
====================================================================================================================================================================
Installing:
 libnsl                              i686                              2.28-164.0.1.el8                               oellabrepo                              108 k

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

Total size: 108 k
Installed size: 158 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                            1/1
  Installing       : libnsl-2.28-164.0.1.el8.i686                                                                                                               1/1
  Running scriptlet: libnsl-2.28-164.0.1.el8.i686                                                                                                               1/1
  Verifying        : libnsl-2.28-164.0.1.el8.i686                                                                                                               1/1

Installed:
  libnsl-2.28-164.0.1.el8.i686

Complete!
[root@dm01db01 grid]# yum install libnsl2
Last metadata expiration check: 1:43:46 ago on Sat 12 Mar 2022 09:47:33 PM IST.
Package libnsl2-1.2.0-2.20180605git4a062cf.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@dm01db01 grid]# yum install libnsl2.i686
Last metadata expiration check: 1:43:55 ago on Sat 12 Mar 2022 09:47:33 PM IST.
Dependencies resolved.
====================================================================================================================================================================
 Package                               Architecture                Version                                                  Repository                         Size
====================================================================================================================================================================
Installing:
 libnsl2                               i686                        1.2.0-2.20180605git4a062cf.el8                           oellabrepo                         61 k
Installing dependencies:
 keyutils-libs                         i686                        1.5.10-9.el8                                             oellabrepo                         34 k
 krb5-libs                             i686                        1.18.2-14.el8                                            oellabrepo                        905 k
 libcom_err                            i686                        1.45.6-2.el8                                             oellabrepo                         49 k
 libselinux                            i686                        2.9-5.el8                                                oellabrepo                        172 k
 libsepol                              i686                        2.9-3.el8                                                oellabrepo                        366 k
 libtirpc                              i686                        1.1.4-5.0.1.el8                                          oellabrepo                        121 k
 libverto                              i686                        0.3.0-5.el8                                              oellabrepo                         25 k
 openssl-libs                          i686                        1:1.1.1k-4.el8                                           oellabrepo                        1.5 M
 pcre2                                 i686                        10.32-2.el8                                              oellabrepo                        246 k
Installing weak dependencies:
 openssl-pkcs11                        i686                        0.4.10-2.el8                                             oellabrepo                         70 k

Transaction Summary
====================================================================================================================================================================
Install  11 Packages

Total size: 3.5 M
Installed size: 8.1 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                            1/1
  Installing       : openssl-pkcs11-0.4.10-2.el8.i686                                                                                                          1/11
  Installing       : openssl-libs-1:1.1.1k-4.el8.i686                                                                                                          2/11
  Running scriptlet: openssl-libs-1:1.1.1k-4.el8.i686                                                                                                          2/11
  Installing       : libcom_err-1.45.6-2.el8.i686                                                                                                              3/11
  Running scriptlet: libcom_err-1.45.6-2.el8.i686                                                                                                              3/11
  Installing       : pcre2-10.32-2.el8.i686                                                                                                                    4/11
  Installing       : libverto-0.3.0-5.el8.i686                                                                                                                 5/11
  Installing       : libsepol-2.9-3.el8.i686                                                                                                                   6/11
  Running scriptlet: libsepol-2.9-3.el8.i686                                                                                                                   6/11
  Installing       : libselinux-2.9-5.el8.i686                                                                                                                 7/11
  Running scriptlet: libselinux-2.9-5.el8.i686                                                                                                                 7/11
  Installing       : keyutils-libs-1.5.10-9.el8.i686                                                                                                           8/11
  Installing       : krb5-libs-1.18.2-14.el8.i686                                                                                                              9/11
  Installing       : libtirpc-1.1.4-5.0.1.el8.i686                                                                                                            10/11
  Running scriptlet: libtirpc-1.1.4-5.0.1.el8.i686                                                                                                            10/11
  Installing       : libnsl2-1.2.0-2.20180605git4a062cf.el8.i686                                                                                              11/11
  Running scriptlet: libnsl2-1.2.0-2.20180605git4a062cf.el8.i686                                                                                              11/11
[/usr/lib/tmpfiles.d/pesign.conf:1] Line references path below legacy directory /var/run/, updating /var/run/pesign → /run/pesign; please update the tmpfiles.d/ drop-in file accordingly.

  Verifying        : keyutils-libs-1.5.10-9.el8.i686                                                                                                           1/11
  Verifying        : krb5-libs-1.18.2-14.el8.i686                                                                                                              2/11
  Verifying        : libcom_err-1.45.6-2.el8.i686                                                                                                              3/11
  Verifying        : libnsl2-1.2.0-2.20180605git4a062cf.el8.i686                                                                                               4/11
  Verifying        : libselinux-2.9-5.el8.i686                                                                                                                 5/11
  Verifying        : libsepol-2.9-3.el8.i686                                                                                                                   6/11
  Verifying        : libtirpc-1.1.4-5.0.1.el8.i686                                                                                                             7/11
  Verifying        : libverto-0.3.0-5.el8.i686                                                                                                                 8/11
  Verifying        : openssl-libs-1:1.1.1k-4.el8.i686                                                                                                          9/11
  Verifying        : openssl-pkcs11-0.4.10-2.el8.i686                                                                                                         10/11
  Verifying        : pcre2-10.32-2.el8.i686                                                                                                                   11/11

Installed:
  keyutils-libs-1.5.10-9.el8.i686       krb5-libs-1.18.2-14.el8.i686          libcom_err-1.45.6-2.el8.i686       libnsl2-1.2.0-2.20180605git4a062cf.el8.i686
  libselinux-2.9-5.el8.i686             libsepol-2.9-3.el8.i686               libtirpc-1.1.4-5.0.1.el8.i686      libverto-0.3.0-5.el8.i686
  openssl-libs-1:1.1.1k-4.el8.i686      openssl-pkcs11-0.4.10-2.el8.i686      pcre2-10.32-2.el8.i686

Complete!
Previous
Next Post »