Tuesday, August 23, 2011

Install Grid Infra - clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

Nothing special, I just installed Grid Infrastructure on Oracle Linux 6 update 1. I found error during run "root.sh":
clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
# /u01/app/oracle/11.2.0/grid/root.sh
Check /u01/app/oracle/11.2.0/grid/install/root_mytest_2011-08-23_18-29-38.log for the output of root script
# cat /u01/app/oracle/11.2.0/grid/install/root_mytest_2011-08-23_18-29-38.log

Running Oracle 11g root script...

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/oracle/11.2.0/grid
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/oracle/11.2.0/grid/crs/install/crsconfig_params
/u01/app/oracle/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, 32512
/u01/app/oracle/11.2.0/grid/perl/bin/perl -I/u01/app/oracle/11.2.0/grid/perl/lib -I/u01/app/oracle/11.2.0/grid/crs/install /u01/app/oracle/11.2.0/grid/crs/install/roothas.pl execution failed
Check on My Oracle Support for Idea. Clscfg.bin Error While Loading Shared Libraries: libcap.so.1 [ID 952051.1]. Need to install libcap1 and libcap2 packages.
# uname -r
2.6.32-100.34.1.el6uek.x86_64
So, need libcap1 and libcap2 packages for 2.6.32-100.34.1.el6uek.x86_64
# yum list | grep libcap
compat-libcap1.i686 1.10-1 @ol6_ga_base
libcap.i686 2.16-5.2.el6 @ol6_ga_base
libcap.x86_64 2.16-5.2.el6 @anaconda-OracleLinuxServer-201102031546.x86_64/6.0
libcap-devel.i686 2.16-5.2.el6 @ol6_ga_base
libcap-devel.x86_64 2.16-5.2.el6 @ol6_ga_base
libcap-ng.x86_64 0.6.4-3.el6_0.1 @ol6_u1_base
compat-libcap1.x86_64 1.10-1 ol6_ga_base
libcap-ng.i686 0.6.4-3.el6_0.1 ol6_u1_base
libcap-ng-devel.i686 0.6.4-3.el6_0.1 ol6_u1_base
libcap-ng-devel.x86_64 0.6.4-3.el6_0.1 ol6_u1_base
libcap-ng-python.x86_64 0.6.4-3.el6_0.1 ol6_u1_base
libcap-ng-utils.x86_64 0.6.4-3.el6_0.1 ol6_u1_base
Installed...
# yum install libcap.x86_64
Setting up Install Process
Package libcap-2.16-5.2.el6.x86_64 already installed and latest version
Nothing to do
libcap2 package installed, so install libcab1.
# yum install compat-libcap1.x86_64
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libcap1.x86_64 0:1.10-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
compat-libcap1 x86_64 1.10-1 ol6_ga_base 17 k

Transaction Summary
=========================================================================================================================
Install 1 Package(s)

Total download size: 17 k
Installed size: 29 k
Is this ok [y/N]: y
Downloading Packages:
compat-libcap1-1.10-1.x86_64.rpm | 17 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : compat-libcap1-1.10-1.x86_64 1/1

Installed:
compat-libcap1.x86_64 0:1.10-1

Complete!
OK ... run "root.sh" again.
# /u01/app/oracle/11.2.0/grid/crs/install/roothas.pl -deconfig
Using configuration parameter file: /u01/app/oracle/11.2.0/grid/crs/install/crsconfig_params
# rm /etc/oracle/olr.loc
# /u01/app/oracle/11.2.0/grid/root.sh
...One thing on Oracle Linux 6. It's not support inittab file. You can create file /etc/init/*.conf (created before or modified has script )
#start oracle
start on runlevel [35]
stop on runlevel [016]
respawn
exec /etc/init.d/init.ohasd run > /dev/null 2>&1 < /dev/null
Thank You for Oracle Linux 6.1 And libcap.so.1: cannot open shared object
I learned more...

No comments: