Tag Archives: make command

Firefox Simple Build in Linux

This post is about how Firefox can be built from its source code. The process is pretty simple. All you’ve got to do is follow the following the steps :

  • The first step is to make sure that you have certain tools installed in  your system and you also have 2 GB RAM space in your  system, else chances are high that the Firefox build may be slow.
    • Ubuntu Users  : Ubuntu Users run the following commands in your terminal :
      1. sudo apt-get build-dep firefox
      2. sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm
    • Debian Users : For Debian users, the following commands should be used :
      1. sudo apt-get build-dep iceweasel
      2. sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm
    • Fedora Users : Fedora users should use the following commands in the terminal :
      1. sudo yum groupinstall ‘Development Tools’ ‘Development Libraries’ ‘GNOME Software Development’
      2. sudo yum install mercurial autoconf213 glibc-static libstdc++-static yasm wireless-tools-devel mesa-libGL-devel alsa-lib-devel libXt-devel

If you get a problem with any of these commands, try installing each software from the Ubuntu Software Center.

  • The next step is to get a mercurial clone for your source code. Run the following command in the terminal. This will get the source code from the Mozilla’s Mercurial code repository. This step also takes a lot of time since it involves a lot of code.
    1. hg clone http://hg.mozilla.org/mozilla-central
  • This step is optional. It is for build configuration. You can go to this site.
  • The next step is to go into the mozilla-central directory and build  the downloaded code. ‘make’ command will compile the files in the source codeRun the following command in the terminal :
    1. make -f client.mk
  • I you want to update and build Firefox again, then this is what you do :
    1. hg pull -u
    2. make -f client.mk