You will want to get the latest version of Firefox 4 from the Mozilla website (Note, this is the latest 4.0 install for en-US. For other languages or versions you can navigate the site from the link below. The current tarball name is firefox-4.0.tar.bz2):
(http://releases.mozilla.org/pub/mozilla.org/firefox/release)
You will also want to download an appropriate version of libstdc++.so.6, in this case the version from Fedora 9 i386 will work:
Once you have both packages, you will extract them into a directory like this:
mkdir firefox4 mv firefox-4.0.tar.bz2 libstdc++-4.3.0-8.i386.rpm firefox4 cd firefox4 tar xvjf firefox-4.0.tar.bz2
The above will leave you with a firefox directory at this level. Now we need to extract the libstdc++ rpm and copy the libstdc++.so file to that firefox directory:
mkdir libstdc cd libstdc rpm2cpio ../libstdc++-4.3.0-8.i386.rpm | cpio -idv cp usr/lib/libstdc++.so.6.0.10 ../firefox/libstdc++.so.6 cd ..
Now you should be back into your firefox4 directory and you should have copied the library into the firefox directory. This command should show you that you have it in the correct place:
ls firefox/libstdc++.so.6
The result should be:
firefox/libstdc++.so.6
You are now ready to deploy the firefox directory where ever you want to run it from. I normally put it in /usr/lib/firefox-4. First I get root like this:
su
Then I change the owner to root and copy the files this this:
chown -R root.root firefox cp -a firefox /usr/lib/firefox-4
Now you can exit the root shell and run firefox with the command:
/usr/lib/firefox-4/firefoxthen copy softlink
ln -s /usr/lib/firefox5/firefox/firefox /usr/bin/firefox
No comments:
Post a Comment