Command "XX" fails with "XX: error while loading shared libraries: <library-version>.so: cannot open shared object file: No such file or directory" error.

Solution Verified - Updated -

Issue

  • Shell commands are failing with the following types of errors:
  # ps 
  ps: error while loading shared libraries: libproc-3.2.3.so: cannot open shared object file: No such file or directory 
  • rpm commands also fail with the following error:
 # rpm -q procps  
 rpm: error while loading shared libraries: librpm-4.3.so: cannot open shared object file: No such file or directory  
 # rpm -V procps  
 rpm: error while loading shared libraries: librpm-4.3.so: cannot open shared object file: No such file or directory

Environment

  • Red Hat Enterprise Linux 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.