Troubleshooting: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory

Posted: December 27, 2011 in Linux Related
Tags: , ,

Fix “error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory”

I recently downloaded CentOS Enterprise 6.2 i386 and tried to install it as a Basic Server. After installation i have tried to update the server using yum command.

[root@linuxcentos01 ~]# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

libidn.so.11: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Dec  7 2011, 20:38:36)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq 

I also tried the ping command and it doesnt work either.

[root@linuxcentos01 ~]# ping google.com
ping: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory

To fix this issue, i tried to install that missing file called libidn. See below:

[root@linuxcentos01 ~]# wget ftp://ftp.muug.mb.ca/mirror/centos/6.1/os/x86_64/Packages/libidn-1.18-2.el6.i686.rpm
[root@linuxcentos01 ~]# rpm -ivh libidn-1.18-2.el6.i686.rpm

After installing libidn to my system everything is now working.

Advertisements
Comments
  1. santyramirez says:

    Thanks Edrick… I was trying to figure out how to fix this one… Your post help a lot! Thanks!

    Btw, when I tried downloading the file I found that the file was removed from the location. I found this link http://rpm.pbone.net/index.php3/stat/4/idpl/17698719/dir/scientific_linux_6/com/libidn-1.18-2.el6.i686.rpm.html and change the link and it work.

    [root@linuxcent02 temp]# wget ftp://ftp.muug.mb.ca/mirror/centos/6.1/os/x86_64/Packages/libidn-1.18-2.el6.i686.rpm
    –2012-06-08 10:22:22– ftp://ftp.muug.mb.ca/mirror/centos/6.1/os/x86_64/Packages/libidn-1.18-2.el6.i686.rpm
    => âlibidn-1.18-2.el6.i686.rpmâ
    esolving http://ftp.muug.mb.ca... 130.179.31.46
    Connecting to http://ftp.muug.mb.ca|130.179.31.46|:21… connected.
    Logging in as anonymous … Logged in!
    ==> SYST … done. ==> PWD … done.
    ==> TYPE I … done. ==> CWD (1) /mirror/centos/6.1/os/x86_64/Packages …
    No such directory âmirror/centos/6.1/os/x86_64/Packagesâ

    [root@linuxcent02 temp]# wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/6.1/x86_64/os/Packages/libidn-1.18-2.el6.i686.rpm
    –2012-06-08 10:24:03– ftp://ftp.ntua.gr/pub/linux/scientificlinux/6.1/x86_64/os/Packages/libidn-1.18-2.el6.i686.rpm
    => âlibidn-1.18-2.el6.i686.rpmâ
    esolving http://ftp.ntua.gr... 147.102.222.211
    Connecting to http://ftp.ntua.gr|147.102.222.211|:21… connected.
    Logging in as anonymous … Logged in!
    ==> SYST … done. ==> PWD … done.
    ==> TYPE I … done. ==> CWD (1) /pub/linux/scientificlinux/6.1/x86_64/os/Packages … done.
    ==> SIZE libidn-1.18-2.el6.i686.rpm … 209292
    ==> PASV … done. ==> RETR libidn-1.18-2.el6.i686.rpm … done.
    Length: 209292 (204K) (unauthoritative)

    100%[========================================================================================================================>] 209,292 53.5K/s in 3.8s

    2012-06-08 10:24:14 (53.5 KB/s) – âlibidn-1.18-2.el6.i686.rpmâ

    • esuarez11 says:

      The previous link might have expired since this was created under 6.1 distro of CentOS, currently the updated version is at 6.2..

      Also note that it is always best to download a link intended for distro you are actually using, Scientific Linux is another Redhat like same with CentOS but i think there are CentOS rpm that is around. 🙂

      Thanks.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s