Prerequisites:
Run this command in terminal note that you need to do this as root. To switch to the root execute the command: su root
There is going to be some dialog so pay attention and answer y to everything
sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development' sudo yum install mercurial autoconf213 glibc-static libstdc++-static yasm wireless-tools-devel mesa-libGL-devel
Building
1. Get the source code
hg clone http://hg.mozilla.org/mozilla-central/ src cd src
2. Make a .mozconfig file and put it into the directory (src) you made above. The file should contain:
. $topsrcdir/browser/config/mozconfig mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-debug mk_add_options MOZ_MAKE_FLAGS="-j2" ac_add_options --enable-debug ac_add_options --disable-optimize
Note these options are for a debug-build
3. Run the make file
make -f client.mk
4. Run firefox by going into the src/objdir-ff-debug/dist/bin directory and either double clicking on the icon or via the command ./firefox