While executing lvm commands getting error : "error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory"

Solution Verified - Updated -

Issue

  • All lvm commands are reporting the below error:
 error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory.
  • The library file /lib64/libreadline.so.6 missing in RHEL 6.
  • The library file /usr/lib64/libreadline.so.6 missing in RHEL 7.

Environment

  • Red Hat Enterprise Linux(RHEL) 6
  • Red Hat Enterprise Linux(RHEL) 7
  • lvm2

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.