-
Sam Gleske authoredSam Gleske authored
prerequisites.md 2.09 KiB
Prerequisites
Required software
- GitLab 6.x
- pyapi-gitlab3 @ v0.5.2
- GNU coreutils
- git 1.6.5 or later (git 1.6.5 introduced transport helpers)
If you plan on mirroring SVN repositories as well then you'll need the following additional options.
If you plan on mirroring BZR repositories then you'll need the following aditional options.
Required software install snippets
python-gitlab
yum install python-setuptools
git clone https://github.com/alexvh/python-gitlab3.git
cd python-gitlab3
git checkout v0.5.2
python setup.py install
Installing git
If you use package management then it will likely be best for you to install git via package management for your OS. You can find the source to git at the git-core project. For instructions on other platforms see the Getting Started - Installing Git section of the git book. The following is for compiling git 1.8.4 on RHEL 6.4.
yum install perl-ExtUtils-MakeMaker zlib zlib-devel openssh libcurl libcurl-devel expat expat-devel gettext gettext-devel
cd /usr/local/src/
git clone https://code.google.com/p/git-core/
cd git-core/
git tag
git checkout v1.8.4
make configure
./configure --prefix=/usr/local
make
make install
Your git should now be located in /usr/local/bin/git
. You should edit /etc/profile
and place /usr/local/bin
at the beginning of your $PATH
.
git-bzr-helper
sudo -i -u gitmirror
mkdir ~/bin
wget https://raw.github.com/felipec/git/fc/master/git-remote-bzr.py -O ~/bin/git-remote-bzr
chmod 755 ~bin/git-remote-bzr
Next up is Installation and Setup.