When I was installing Grid Infrastructure for Stand Alone Server following script was to run
/u01/app/11.2.0/grid/root.sh
while running this following error was given.
error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory .
[root@asm3 /]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
/u01/app/11.2.0/grid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
Failed to create keys in the OLR, rc = 127, Message:
Failed to create keys in the OLR at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 7660.
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl execution failed
[root@asm3 /]#
Solution:-
For this error what i did was installed following rpms
[root@asm3 /]# yum install libcap.x86_64
[root@asm3 /]# yum install compat-libcap1.*
[root@asm3 /]#yum install compat-libcap2.*
[root@asm3 /]#yum install libcap*
[root@asm3 /]# /u01/app//11.2.0/grid/crs/install/roothas.pl -deconfig
[root@asm3 /]# rm /etc/oracle/olr.loc
Again you can run the script again
[root@asm3 /]# /u01/app/11.2.0/grid/root.sh
Successfully Message appears
Configure Oracle Grid Infrastructure for a Cluster ... succeeded