2. Subversion 설치
Subversion은 최신 리눅스 패키지에 포함이 되어있기도 하나. 여기서는 redhat 9.0 기준으로 소스컴파일을 통해 구축하는 방법을 소개한다. 패키지로 설치되어 있을경우 설정파일의 위치가 다를뿐 사용하는 방법은 같다.
(1) 소스파일 다운로드
• Subversion 소스파일은 http://subversion.tigris.org/ 에서 subversion-1.4.3.tar.bz2파일을 받는다.
• Subversion 의존성 라이브러리(subversion-deps-1.4.3.tar.bz2)도 다운 받는다.
• Apache 2.0 이상 버전을 받는다. http://httpd.apache.org/ 에서 httpd-2.2.4.tar.gz 파일을 받는다.
• 저장소를 Berkeley DB를 사용하고 할때는 Berkeley DB도 설치해야 한다.
http://www.oracle.com/technology/software/products/berkeley-db/db/index.html 에서
4.5.20.tar.gz를 받는다
• openssl http://www.openssl.org/source/ 에서 openssl-0.9.8e.tar.gz 을 받는다.
(2) 소스 컴파일
• openssl 컴파일
[root@hybus SRC]# tar xvzf openssl-0.9.8d.tar.tar
[root@hybus SRC]# cd openssl-0.9.8d
[root@hybus openssl-0.9.8d]# ./config
[root@hybus openssl-0.9.8d]# make
[root@hybus openssl-0.9.8d]# make install
• Berkeley DB 컴파일
[root@hybus SRC]# tar xvzf db-4.5.20.tar.tar
[root@hybus SRC]# cd db-4.5.20
[root@hybus db-4.5.20]# cd db-4.5.20
[root@hybus db-4.5.20]# cd build_unix
[root@hybus build_unix]# ../dist/configure
[root@hybus build_unix]# make
[root@hybus build_unix]# make install
설치하면 /usr/local/BerkelyDB4.5 디렉토리가 생긴다.
vi /etc/ld.so.conf로 경로를 추가해준다.
추가 해주었으면 ldconfig로 설정을 적용한다.
[root@hybus build_unix]# ldconfig
• Apache2 컴파일
[root@hybus SRC]# tar xvzf httpd-2.2.4.tar.gz
[root@hybus SRC]# cd httpd-2.2.4
설정이 길기 때문에 스크립트를 만들어서 설정한다.
[root@hybus SRC]# vi apache_conf
[root@hybus SRC]# chmod +x apache_conf
[root@hybus SRC]# ./apache_conf
[root@hybus SRC]# make
[root@hybus SRC]# make install
• Subversion 컴파일
[root@hybus SRC]# tar xvjf subversion-1.4.3.tar.bz2
[root@hybus SRC]# tar xvjf subversion-deps-1.4.3.tar.bz2
설정이 길기 때문에 스크립트를 만들어서 설정한다.
[root@hybus SRC]# vi subver_conf
[root@hybus SRC]# chmod +x subver_conf
[root@hybus SRC]# ./subvert_conf
[root@hybus SRC]# make
[root@hybus SRC]# make install