Thursday, August 23, 2007

Debian : Install Firefox

Tonight I made the switch from Ubuntu 6.10 to Debian 4. My first priority is getting Firefox (not Iceweasel) up and running. As you probably know this isn't a straight forward situation. After a bit of searching I still didn't have a clear cut answer.

The error I kept getting was :

./firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory

I also got :

./firefox-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

A quick search shows that most of the files missing live in :
/home/me/firefox
/usr/lib/iceweasel

Of the possible solutions this is the one that worked for me. I know it's not the prettiest fix but it will due.

1. Download and unzip Firefox.
2. apt-get install libstdc++5
3. Copy the libs from /home/you/Firefox/ to /usr/lib/ (or some other acceptable place).
4. Run firefox-bin from the directory you unzipped it in.

Other possible solutions :
Add /home/you/Firefox to your path
Create symbolic links from the libs in /Firefox/ to /usr/lib (or something)

Other files Firefox may complain about being missing :

libfreebl3.so
libnspr4.so
libnss3.so
libmozjs.so
libnssckbi.so
libplc4.so
libplds4.so
libsmime3.so
libsoftokn3.so
libssl3.so
libxpcom_compat.so
libxpcom_core.so
libxpcom.so
libxpistub.so

Monday, August 06, 2007

Ubuntu : Firefox crashes related to VLC plugin

There is a lot of confusion about this topic so I'm going to keep it short and sweet.

I was using Ubuntu 6.06 + Firefox + VLC plugin, life was good, everything worked.

Then I upgraded to Ubuntu 6.10. Shortly there after I noticed that I couldn't stream audio of the x-mplayer2 variety. As soon as the page which initiates the stream loads Firefox would crash.

I tried a number of fixes but they didn't work :

-reinstalled Firefox
-reinstalled VLC + its plugins

When I ran Firefox from the command line upon crashing this is the only error I would get :
Segmentation fault (core dumped)
After much Googling it came to my attention that the plugin which handles such media types (the VLC plugin) may be to blame.


Long story short : I noticed the latest version of the VLC plugin is 0.8.6 which Synaptic told me I had installed. However about:plugins in Firefox told me the VLC plugin version was 0.8.4

It seems that when VLC upgraded it only upgraded the libvlcplugin.so in these locations :
/usr/lib/mozilla-firefox/plugins/libvlcplugin.so
/usr/lib/mozilla/plugins/libvlcplugin.so
and not in this location :
/home/Me/.mozilla/plugins/libvlcplugin.so
So I deleted the above copy of libvlcplugin.so and then used Synaptic to do another re-install of the VLC plugin. I then copied libvlcplugin.so from /usr/lib/mozilla-firefox/plugins/ to /home/Me/.mozilla/plugins/

Firefox no longer crashes when I visit the offending pages (sites that use the VLC plugin) however my streaming radio still doesn't work.

Hopefully this information will be of some help.
//]]>