07 Apr 2013 How to handle error while loading shared libraries

Today, I installed adobe Reader in ubuntu 12.04 x64. While launch adobe reader 'acroread' and i got the following error

"error while loading shared libraries: libgdk_pixbuf_xlib-2.0.so.0: cannot open shared object file: No such file or directory

After googling in web,I used the following approach to address this problem

Run the following command

strace -e open acroread  # Trace system signals

It gives error at unable to load /usr/lib/libgdk_pixbuf_xlib-2.0.so.0

I understand that acroread is x86 version and it is looking for x86 version of libgdk_pixbuf_xlib and it is not installed.

So I install libgtk version with

sudo apt-get install --install libgtk2.0-0:i386

Here is common approach to handle error while loading shared libraries

  • Trace Errors through strace command
  • Use apt-file to findout source of lib of package or similar package manager
  • Install package
  • Enjoy..

comments powered by Disqus