How to Solve XPCOMGlueLoad Error – Couldn’t load XPCOM – Mozilla Firefox – Debian

When I started my newly upgraded latest version of Mozilla Firefox 13.0.1 on my Linux Debian 6, I got these error messages:

XPCOMGlueLoad error for file /opt/firefox/libxpcom.so:
libxul.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

What I’m trying to do is quite simple. I just need to chmod the Mozilla Firefox folder recursively. You NEED to adjust the path of your Firefox installation directory.

sudo chmod -R +x /opt/firefox/

Now, I try to launch the Firefox again. Still got some error messages. But it’s now a little bit different. So, I guest that chmod trick did work.

XPCOMGlueLoad error for file /opt/firefox/libxpcom.so:
libdbus-glib-1.so.2: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

After googling for a while, I found a solution for this error. We need to install the libdbus-glib-1-2 package.

sudo apt-get install libdbus-glib-1-2

Done. Once again, I try to relaunch the Mozilla Firefox, and you know what? It works! No more XPCOMGlueLoad error.