Preparation for building Firefox under Fedora

Posted on

Today, I want to build Firefox myself. So I found this post: Simple Firefox build, and there is a link, which could help me setup the prerequisites. The link is Linux Build Prerequisites. But I still got some problems when I followed the instruction. So I write down this article about preparation for building Firefox.

Ok, so what happened? after I input this command in my terminal:

wget -q -O && python

The command I input looks like to download some python script file, and execute it. But when executing the script, It said that:

Your version of Mercurial (3.5.1) is not modern enough.
Traceback (most recent call last):
  File "", line 159, in <module>
  File "", line 150, in main
  File "/tmp/tmpTdL9Pv/mozboot/", line 137, in bootstrap

  File "/tmp/tmpTdL9Pv/mozboot/", line 316, in ensure_mercurial_modern
TypeError: upgrade_mercurial() takes exactly 1 argument (2 given)

“ok,” I thought, “Mercurial (3.5.1) is not modern enough. Let me just easily upgrade it.”

But no matter how many times I give sudo dnf update -y to my Terminal, it kept telling me that:

Last metadata expiration check performed 0:14:52 ago on Tue Mar  1 22:23:25 2016.
Dependencies resolved.
Nothing to do.

So my Mercurial should be up-to-date. But I found that the official website of Mercurial shows the latest version of Mercurial is 3.7.1, and mine is 3.5.1!

Ok, Fedora has copr, which means Cool Other Package Repo. So let’s find some cool package about Mercurial. And thanks to Google I got this repo: nbecker/mercurial-3, and try this command:

sudo dnf copr enable nbecker/mercurial-3 && sudo dnf update

now I have 3.2.1 …. though this is not the really newest version of Mercurial, it won’t get wrong when I give wget -q -O && python to my Terminal!

It allow me to move on, so I think it’s a solution for people who use Fedora, and want to build Firefox, but face the not-new-enough-version mercurial problem. Hope this article could help you finish the preparation for building Firefox.

… maybe you might be interested in my other articles about linux:

Firefox is cute, isn't it?

Photo by Nathan Anderson on Unsplash