Install GIT in CentOS (test it) and centosgit

Source: Internet
Author: User

Install GIT in CentOS (test it) and centosgit
1. install the required software package # sudo su # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel # yum install gcc perl-ExtUtils-MakeMaker2, download & install # cd/usr/ src # wget https://www.kernel.org/pub/software/scm/git/git-2.7.3.tar.gz (git version, this document is subject to 2.7.3) # tar xzf git-2.7.3.tar.gz # cd git-2.7.3 # make prefix =/usr/local/git all # make prefix =/usr/local/git install # echo "export PATH = $ PATH: /usr/local/git/bin ">/e Tc/bashrc # source/etc/bashrc, other users may have problems) 3. Check the version # git -- versiono, other centos built-in Git, 7. version x comes with git 1.8.3.1 (which should be, or may not). Before installing the new version, you must use yun remove git to uninstall it (or uninstall it after installation ). When you execute make prefix =/usr/local/git all, the following Error may be reported: make: * [git-credential-store] Error 1. You can use the following command to replace #. /configure -- without-iconv # make CFLAGS =-liconv prefix =/usr/local/git all # make CFLAGS =-liconv prefix =/usr/local/git install Important: the content is organized based on the network and your own experience. If you offend the original author, contact QQ: 452834144 to delete it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.