install git 본문

Programming

install git

halatha 2010. 4. 19. 23:46
Git 분산 버전 관리 시스템

prerequisite: python 2.x / asciidoc / xmlto

OS: Redhat Linux 2.6.9-67.0.7.ELsmp

1. python 2.6.2
$ wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tgz
$ tar xvfz Python-2.6.5.tgz
$ cd Python-2.6.5
Python-2.6.5$ ./configure --prefix=$HOME/usr/local/
Python-2.6.5$ make install

2. asciidoc-8.5.3 (install, tarball)
$ wget http://sourceforge.net/projects/asciidoc/files/asciidoc/8.5.3/asciidoc-8.5.3.tar.gz/download
$ tar xvfz asciidoc-8.5.3.tar.gz
$ cd asciidoc-8.5.3
asciidoc-8.5.3$ ./configure --prefix=$HOME/usr/local/
asciidoc-8.5.3$ make install

* 설치되어 있지 않으면 git의 make 단계에서 /bin/sh: asciidoc: command not found 오류 발생

3. xmlto (homepage, tarball)
$ wget https://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.23.tar.gz
$ tar xvfz xmlto-0.0.23.tar.gz
$ cd xmlto-0.0.23
xmlto-0.0.23$ ./configure --prefix=$HOME/usr/local/
xmlto-0.0.23$ make install

* 설치되어 있지 않으면 git의 make 단계에서 bin/sh: xmlto: command not found 오류 발생

4. git (homepage)
$ wget http://kernel.org/pub/software/scm/git/git-1.7.0.5.tar.gz
$ cd git-1.7.0.5
git-1.7.0.5$ make prefix=/home1/irteam/work/jun/usr/local/ all
git-1.7.0.5$ make install
git-1.7.0.5$ git --version
git version 1.7.0.5

* 원래 책에는 다음과 같이 설치하게 되어 있으나
git-1.7.0.5$ make prefix=/home1/irteam/work/jun/usr/local/ all doc
git-1.7.0.5$ make install install-doc
이런 종류의 오류가 계속 발생해 doc 부분 제외
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd

2.2 Git 구성하기
$ git config --global user.name "your name"
$ git config --global user.email "your.name@somesite.com"
$ git config --global --list
user.name=your name
user.email=your.name@somesite.com
$ git config --global color.ui "auto"
$ git help <command>    #    install-doc 필요
Comments