easily installing modern Mercurial on RHEL6

Augie Fackler raf at durin42.com
Sun Oct 15 04:46:13 UTC 2017


> On Oct 14, 2017, at 5:22 PM, Gregory Szorc <gregory.szorc at gmail.com> wrote:
> 
> On Wed, Oct 11, 2017 at 7:15 PM, Hollis Blanchard <hollis_blanchard at mentor.com <mailto:hollis_blanchard at mentor.com>> wrote:
> I've been experimenting with building a modern Mercurial environment on RHEL6. I need to include some external extensions (hg_experimental and hg-git), but my distribution is ancient I'm not even an administrator. I wanted to make it as easy as possible to install this environment on anybody's workstation, to remove initial installation as a barrier to adoption.
> 
> The attached script is not RHEL-specific, but it expects users to provide gcc 4.7 and python 2.7. I'm considering changing it to pull gcc 4.7 and lz4 packages from EPEL, which would tie it to RHEL...
> 
> It's certainly not a General Purpose Installer, but it works well for me and I'm sharing it in case it's useful to others in a similar situation. With improvements, would this be useful as a contrib/ script, or just a blog post somewhere?
> 
> I believe previous discussions around supporting Mercurial on older RHEL releases resulted in the decision to provide RPMs with a self-contained Python installation. Essentially, you could `yum localinstall /path/to/mercurial.rpm` and it would "just work." What I'm not sure is if we ever landed code to produce those RPMs. If we did, we're not publishing them to https://www.mercurial-scm.org/release/ <https://www.mercurial-scm.org/release/>.
> 
> Of course, anything we can do to make installing a modern Mercurial on as many machines as possible is a good idea. So if you feel others could benefit from the script you wrote, I'd encourage you to send it as a patch.
> 
> Augie: anything to add?

Nope, you covered the bases well. I know we have a script like this for RHEL5, so it might be easy to adapt for RHEL6. Poke around in the makefile for things marked ‘centos'.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20171015/1e00975d/attachment-0002.html>


More information about the Mercurial mailing list