You can use the following command to replace #. Run make prefix=/usr/local/git allError may be reported: make: * Error 1. This tutorial assumes familiarity with CentOS 7 packages management, source code compilation, and the command-line. Further documentation is available in the Git Book. yun remove gitUninstall (you can also uninstall it after installation ). This is a quick tutorial showing the necessary steps to install Git from source on CentOS 7. This is the fastest method, but the Git version installed. Yum has a spiffy one time option to let you get around the excluded package problem. The easiest way to install Git and have it ready to use is to use CentOSs default repositories. you need to use it before installing the new version. Pain in the NECK The good news is that the perl packages that git needs won't mess with Cpanel, so you can go ahead and install them. Check the versionĬentos comes with Git, and 7.x comes with git 1.8.3.1 (which should be, or may not). # cd /usr/src# wget tar xzf git-2.7.0.tar.gz # cd git-2.7.0# make prefix=/usr/local/git all# make prefix=/usr/local/git install# echo "export PATH=$PATH:/usr/local/git/bin" > /etc/bashrc# source /etc/bashrc3. Install the required software package # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel # yum install gcc perl-ExtUtils-MakeMaker2. See also: Gerrit tutorial After installing git (1, 2), creating a gerrit user account, setting up an ssh key (3, 4), and cloning a project repository (or example), you are ready to install git-review, a tool for working with Gerrit repositories so you dont have to remember some commands.
0 Comments
Leave a Reply. |