Home > bash, CentOS > Install git 1.7.11-rc2, gitolite v3, mercurial-2.2.2 at VPS (Paralles) CentOS release 5.7 (Final)

Install git 1.7.11-rc2, gitolite v3, mercurial-2.2.2 at VPS (Paralles) CentOS release 5.7 (Final)

I wanted latest git and gitolite at VPS, their app store is missing the git as usual

short story


yum install curl-devel expat-devel gettext-devel   openssl-devel zlib-devel
mkdir /opt/installs
cd /opt/installs/
wget  https://nodeload.github.com/git/git/tarball/master
mv master git-git-v1.7.11-rc2-2-g02101c9.tar.gz
tar xvfz git-git-v1.7.11-rc2-2-g02101c9.tar.gz
wget http://mercurial.selenic.com/release/mercurial-2.2.2.tar.gz
tar xvfz mercurial-2.2.2.tar.gz
yum install  gcc* -y
yum install  python* -y
yum install autoconf* -y
wget  http://prdownloads.sourceforge.net/docutils/docutils-0.9.tar.gz?download
tar xvfz docutils-0.9.tar.gz
cd docutils-0.9
python setup.py install
cd ..
cd mercurial-2.2.2
make all
make all install
cd ..
hg --version
hg clone -r 8.6.7 https://asciidoc.googlecode.com/hg/ asciidoc-8.6.7
cd git-git-02101c9
make prefix=/usr/local all
make prefix=/usr/local install
cd /opt/installs
git --version
# git version 1.7.11-rc2
git clone git://git.kernel.org/pub/scm/git/git.git
adduser -r -m  -s /bin/bash -c 'git version control'  gitolite
su - gitolite
git clone git://github.com/sitaramc/gitolite
echo "ssh-rsa AAAAB3NzaC1yc2EXXXX" > admin.pub
gitolite setup -pk admin.pub

links to follow :
http://edvanbeinum.com/install-mercurial-on-centos
http://git-scm.com/book/en/Getting-Started-Installing-Git
http://sitaramc.github.com/gitolite/master-toc.html

Advertisements
Categories: bash, CentOS Tags: , , ,
  1. rherrick
    November 19, 2012 at 11:15 pm

    I did this (found on a stackoverflow post: http://stackoverflow.com/questions/11889657/problems-cloning-a-repo-in-mercurial-on-a-centos-server-with-cpanel):

    [root@code01 local]# rpm -Uvh http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
    Retrieving http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
    warning: /var/tmp/rpm-tmp.vng8kU: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
    Preparing… ########################################### [100%]
    1:mercurial ########################################### [100%]
    [root@code01 local]# which hg
    /usr/bin/hg
    [root@code01 local]# hg –version
    Mercurial Distributed SCM (version 2.2.2)
    (see http://mercurial.selenic.com for more information)

    Copyright (C) 2005-2012 Matt Mackall and others
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    That worked for me without the build steps.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: