검색결과 리스트
글
GIT 설치 [on Centos5.x]
카테고리 없음
2011. 9. 20. 18:05
1) 일단 폴더를 만들고...
[root@localhost ~]# mkdir git
[root@localhost ~]# cd git
[root@localhost git]#
2) yum으로 사전에 몇 가지를설치하고...
[root@localhost git]# yum install zlib-devel
[root@localhost git]# yum install openssl-devel
[root@localhost git]# yum install perl
[root@localhost git]# yum install cpio
[root@localhost git]# yum install expat-devel
[root@localhost git]# yum install gettext-devel
3) curl 다운 받아 설치하고...
[root@localhost git]# wget http://curl.haxx.se/download/curl-7.18.0.tar.gz
--2011-09-16 14:30:19-- http://curl.haxx.se/download/curl-7.18.0.tar.gz
Resolving curl.haxx.se... 80.67.6.50, 2a00:1a28:1200:9::2
Connecting to curl.haxx.se|80.67.6.50|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2285430 (2.2M) [application/x-gzip]
Saving to: `curl-7.18.0.tar.gz'
100%[=========================================================================>] 2,285,430 454K/s in 4.9s
2011-09-16 14:30:26 (454 KB/s) - `curl-7.18.0.tar.gz' saved [2285430/2285430]
[root@localhost git]# tar xvfz curl-7.18.0.tar.gz
[root@localhost git]# cd curl-7.18.0
[root@localhost git]# ./configure
......
[root@localhost git]# make
......
[root@localhost git]# make install
[root@localhost git]# vi /etc/ld.so.conf
include ld.so.conf.d/*.conf
include /usr/local/iconv
/usr/local/lib <---- 이거 추가
~
~
~
[root@localhost git]# ldconfig
5) 이제 GIT를 받아 설치한다.
[root@localhost git]# wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
--2011-09-16 14:40:48-- http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
Resolving www.codemonkey.org.uk... 213.5.94.17, 2a03:9800:10:5::2
Connecting to www.codemonkey.org.uk|213.5.94.17|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz [following]
--2011-09-16 14:40:50-- http://codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
Resolving codemonkey.org.uk... 213.5.94.17, 2a03:9800:10:5::2
Reusing existing connection to www.codemonkey.org.uk:80.
HTTP request sent, awaiting response... 200 OK
Length: 3391525 (3.2M) [application/x-gzip]
Saving to: `git-latest.tar.gz'
100%[=========================================================================>] 3,391,525 805K/s in 4.1s
2011-09-16 14:40:55 (805 KB/s) - `git-latest.tar.gz' saved [3391525/3391525]
[root@localhost git]# tar xvfz git-latest.tar.gz
[root@localhost git]# cd git-2011-09-07/
[root@localhost git-2011-09-07]#
[root@localhost git-2011-09-07]# autoconf
[root@localhost git-2011-09-07]# ./configure --with-curl=/usr/local
[root@localhost git-2011-09-07]# make; make install
[root@localhost git-2011-09-07]# make; make install