How to install the GIT server in CentOS

Source: Internet
Author: User

Install GIT1. Git needs to call the code of the library such as Curl,zlib,openssl,expat,libiconv, so you need to install these dependencies first. Yum Install Curl-devel expat-devel gettext-devel Openssl-devel Zlib-devel Perl-devel2. Then go to the official website http://git-scm.com/download/linux Download the latest version of the source installation, or use the system-provided package management tool to install. wget https://www.kernel.org/pub/software/scm/ Git/git-2.3.5.tar.gz3. Download and unzip into folder tar Xzf git-2.3.5.tar.gz
CD git-2.3.54. Online search for a half-day information found no useful to look at the Readme to solve through the readme know installation needs to view the install file

Normally you can just do ' make ' followed by ' make install ', and that
Would install the GIT programs in your own ~/bin/directory. If you want
To does a global install, you can do

$ make prefix=/usr all DOC info; # as yourself
# make PREFIX=/USR install Install-doc install-html install-info; # as Root

(or prefix=/usr/local, of course).

This is what I'm using:

Make prefix=/usr/local All
Make prefix=/usr/local Install

How to install the GIT server in CentOS

Related Article

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.