Compile Firefox
From MEPIS Documentation Wiki
Reason: if you want to try the latest 64 bit version that is not yet available in MEPIS or community repository you need to compile it yourself because Mozilla doesn't seem to provide binary builds for 64 bit releases. Another reason is to customize the build to your needs.
Contents |
Install prerequisites
As root, run these commands (you need to have src repositories enabled in /etc/apt/sources.list, if you just enabled them you need to run "apt-get update" first), and may need to add "deb-src http://main.mepis-deb.org/mepiscr/repo/ mepis8cr main non-free" to your sources.list:
apt-get build-dep iceweasel apt-get install mercurial libasound2-dev libcurl4-openssl-dev libidl-dev libdbus-glib-1-dev
Create ~/.mozconfig file
This is a file used to set compilation options for Firefox, a generic one could look like this:
mk_add_options MOZ_CO_PROJECT=browser mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt ac_add_options --enable-application=browser ac_add_options --enable-optimize=-O2 ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --enable-official-branding ac_add_options --disable-crashreporter
You can find more details about this file at https://developer.mozilla.org/en/Configuring_Build_Options and you can try different options that are better suited for your needs.
Download sources and unpack
tar xvf packagename
- Move resulting folder to ~/mozilla
mv foldername ~/mozilla
Building
This will take some time depending on your computer.
cd ~/mozilla make -f client.mk build
Making an installation tarball
Change directory to your object directory ("~/mozilla/ff-opt" in case you use ~/.mozconfig posted here):
cd ~/mozilla/ff-opt
and run:
make package
This will create a tar.bz2 file in ~/mozilla/ff-opt/dist which you can then unpack anywhere. After the tar.bz2 file is created you can use the instructions from this page (starting with the second point) to install it.