svn 설치하기

ITWeb/서버관리 2011. 9. 7. 13:49

# 참고 사이트

    http://jjeong.tistory.com/252

    http://ezgreg.tistory.com/40

 

# 다운로드

 

 

# 압축풀기

    tar -xvzf subversion-1.6.16.tar.gz

    tar -xvzf subversion-deps-1.6.16.tar.gz

 

# configure & make

    cd subversion-1.6.16

    ./configure --prefix=/home/계정/app/subversion --without-berkeley-db --enable-shared --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib --with-apxs=/home/계정/app/httpd/bin/apxs

    make

# 오류 발생

openssl 관련 오류 발생 시 -fPIC 옵션을 openssl 설치 시 Makefile 에 CFLAG 옵션에 추가한후 설치 하면 됨.

# edited by henry (added -fPIC)
# CFLAG= -0
CFLAG= -O -fPIC

    make install

 

# svn 계정 생성

    useradd svn -m -b /home/svn -d /home/svn -s /bin/bash

    passwd svn

 

# repository 생성

    svnadmin create --fs-type fsfs repository

 

# svnserve 로 서버 실행 ( OS 재시작시 실행 될 수 있도록 자동 실행 등록 필요)

    svnserve -d -r /home/svn/

 

# 계정 관리

    cd /home/svn/repository/conf

    vi svnserve.conf

[general]

anon-access = none
auth-access = write

password-db = passwd

realm = Repository

    vi passwd

계정 = 암호

 

# svn 연결 하기

    연결 URL 은 아래와 같습니다. eclipse 등에서 사용하시면 됩니다.

    svn://xx.xxx.xxx.xxx/repository

: