Table of Contents
< All Topics
Print

[aCloud] Reporting “libcap.so.1: cannot open shared object file: No such file” during Oracle Rac installation

Problem Description

During the installation of Oracle RAC, when installing grid and executing root.sh with the root user, the following error was reported
sh /u01/app/11.2.0/grid/root.sh reported the error ‘libcap.so.1: cannot open shared object file: No such file or directory’

Alarm Information

The actual error message on the installation interface is "libcap.so.1: cannot open shared object file: No such file or directory"

Process –

  1. The error message "libcap.so.1: cannot open shared object file: No such file or directory" indicates that the system is missing the libcap package.
    Missing linker file libcap.so.1.
  2. Delete the configuration information of the configuration grid. Log in to the system as the root user and execute the following statement:
    [root@rac1 ~]# perl $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose
  3. Create a connection file
    [root@rac1 ~]# cd /lib64
    [root@rac1 lib64]# ls libcap*
    libcap-ng.so.0 libcap-ng.so.0.0.0 libcap.so.2 libcap.so.2.16
    [root@rac1 lib64]# ln -s libcap.so.2.16 libcap.so.1
    [root@rac2 lib64]# ln -s libcap.so.2.16 libcap.so.1
  4. Re-execute root.sh

[root@rac1 ~]#sh /u01/app/11.2.0/grid/root.sh

Root Cause

This is caused by a missing link file libcap in Red Hat 6

Solution

  1. The error message "libcap.so.1: cannot open shared object file: No such file or directory" indicates that the system is missing the libcap package.
    Missing linker file libcap.so.1.
  2. Delete the configuration information of the configuration grid. Log in to the system as the root user and execute the following statement:
    [root@rac1 ~]# perl $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose
  3. Create a connection file
    [root@rac1 ~]# cd /lib64
    [root@rac1 lib64]# ls libcap*
    libcap-ng.so.0 libcap-ng.so.0.0.0 libcap.so.2 libcap.so.2.16
    [root@rac1 lib64]# ln -s libcap.so.2.16 libcap.so.1
    [root@rac2 lib64]# ln -s libcap.so.2.16 libcap.so.1
  4. Re-execute root.sh

[root@rac1 ~]#sh /u01/app/11.2.0/grid/root.sh

Suggestions and Summary

It is recommended that you install all required packages before installing Oracle RAC.

Original Link

https://support.sangfor.com.cn/cases/list?product_id=33&type=1&category_id=15627&isOpen=true