# Installing Herwig from Mercurial¶

While using the bootstrap script, or the tarball, are the preferred methods of installing Herwig in some cases it can be useful to install in from the Mercurial repository. This will require that both Mercurial and the autotools are installed.

hg clone https://herwig.hepforge.org/hg/herwig Herwig
cd Herwig
autoreconf -vi


The code can now be configured and installed in the same way as for the tarball.