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

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!

This entry was posted in en and tagged , , , , . Bookmark the permalink.

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

  1. Pingback: Aptana error when committing to git repository | PHP Developer Resource

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>