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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content