mercurial-server on Fedora/Centos

November 2nd, 2009 by Ahmed S. Farghal Leave a reply »

If you want to setup mercurial-server on fedora or centos/rhel server you are going to see lots of failure messages during installation and the installation will definitely fail.

Mercurial-server was written to run smoothly on debian-based systems, so I patched it to run on fedora/centos and I would like to share the patch with you.

Using the patch is straight-forward, simply download the tip or the latest version of mercurial-server and put the patch file into the extracted directory.

patch < mercurial-server-centos.patch

the patch is a few lines, so it’s naive for professionals.

Get the patch from here

Have Fun.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter
Advertisement

6 comments

  1. Ahmed Kamal says:

    My favorite developer friend saves the day once more ;)

  2. This has been added to the mercurial-server Makefile so you can use:

    sudo make setup-useradd

    S

  3. Also, when installing by hand, the refresh-auth command ends up in /usr/local/bin instead of /usr/share/mercurial-server.

    I’m using mercurial-server 1.0.1, using the new setup-useradd make target. Trying to pull the hgadmin repo gives a password prompt, but there is no password for the hg user.

    Hmmm…not sure what’s going on yet.

  4. Ahmed Sameh says:

    Thanks for the help Ahmed.

    but while I tried to setup over CentOS 5.2 I had to remove the documentation build from the make file.

    Just find the line that says:

    `installfiles: installetc installdoc pythoninstall`

    and replace it with:

    `installfiles: installetc pythoninstall`

    I had also to remove –system parameter from the useradd command.

    I hope this help others…

  5. yes, that was fixed by them already.

Leave a Reply