×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Jing Tai Piao
Added: Oct 11, 2012 6:39 AM
Modified: Oct 11, 2012 10:47 PM
Views: 80
Tags: no tags
Install git on CentOS 6
  1. yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel gcc perl-ExtUtils-MakeMaker
  2. Install MakeMaker:
  3.  
  4. cd /usr/local/src
  5. wget http://files.directadmin.com/services/9.0/ExtUtils-MakeMaker-6.31.tar.gz
  6. tar xvzf ExtUtils-MakeMaker-6.31.tar.gz
  7. cd ExtUtils-MakeMaker-6.31
  8. perl Makefile.PL
  9. make
  10. make install
  11. Download and compile the latest git source:
  12.  
  13. cd /usr/local/src
  14. wget http://git-core.googlecode.com/files/git-1.7.12.3.tar.gz
  15. tar xvzf git-1.7.12.3.tar.gz
  16. cd git-1.7.12.3
  17. ./configure
  18. make
  19. make install
  20. Test installation by initializing a new git repository:
  21.  
  22. cd ~/
  23. mkdir test.git
  24. cd test.git
  25. git init