Dariusz on Software Quality & Performance


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

Filed under: en — Tags: , , , , — dariusz.cieslak @

When opening JSP file in visual mode in Eclipse (Websphere Integrated Developer 6.1.2) I'm getting the following error (under Debian Lenny):

Caused by: java.lang.UnsatisfiedLinkError: /opt/IBM/WID61/configuration/org.eclipse.osgi/bundles/2374/1/.cp/libswt-mozilla-gtk-3236.so (libxpcom.so: cannot open shared object file: No such file or directory)

I checked for shared library dependicies:

$ ldd /opt/IBM/WID61/configuration/org.eclipse.osgi/bundles/2374/1/.cp/libswt-mozilla-gtk-3236.so
linux-gate.so.1 =>  (0xb7fa9000)
libxpcom.so => not found
libnspr4.so => /usr/lib/libnspr4.so (0xb7f4a000)
libplds4.so => /usr/lib/libplds4.so (0xb7f46000)
libplc4.so => /usr/lib/libplc4.so (0xb7f42000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e54000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7e2e000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e21000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7cc6000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7cac000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7ca8000)
/lib/ld-linux.so.2 (0xb7faa000)

and checked ldconfig:

$ sudo ldconfig -v | grep libxpcom
libxpcom.so.0d -> libxpcom.so.0d
libxpcomglue.so.0d -> libxpcomglue.so.0d

library is installed in system:

$ dpkg -S libxpcom.so
libxul0d: /usr/lib/xulrunner/libxpcom.so
libxul0d: /usr/lib/libxpcom.so.0d
xulrunner-1.9: /usr/lib/xulrunner-1.9/libxpcom.so
icedove: /usr/lib/icedove/libxpcom.so

I linked the missing libraries:

cd /usr/lib
sudo ln -s libxpcom.so.0d libxpcom.so
sudo ln -s libxpcomglue.so.0d libxpcomglue.so

That's all!

1 Comment »

  1. [...] old thread (2009) mentioned the possibility to link (symlink) to the missing libraries. But I would recommend [...]

    Pingback by Aptana error when committing to git repository | PHP Developer Resource — 23/05/2012 @

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress