링크 ux 설치 svn

7221 단어 linux
어제 저 는 VPS 의 LNMP 환경 설정 을 마 쳤 습 니 다. 그 다음 에 오픈 소스 프로젝트 를 다운로드 할 수 있 도록 SVN 클 라 이언 트 도 구 를 설치 해 야 합 니 다.SVN 서버 가 Apache 서버 에 설치 되 어야 한 다 는 것 을 알 았 기 때문에 저 는 Nginx 를 사 용 했 습 니 다. 그리고 Nginx 로 Apache 의 역방향 프 록 시 를 해서 자신의 수 요 를 만족 시 킬 필요 가 없습니다. 그래서 저 는 클 라 이언 트 만 설치 하면 됩 니 다.인터넷 에서 많은 튜 토리 얼 을 검색 하고 섞 어 보 니 대부분 SVN 서버 단 을 어떻게 설정 하 는 지 에 대해 이야기 하기 때문에 소량의 글 을 결합 하여 글 로 정리 하여 필기 하 는 것 을 발견 했다.
간단하게 yum install subversion 으로 svn 을 시스템 에 설치 할 수 있다 고 하지만 yum 라 이브 러 리 의 버 전 은 좀 낮 습 니 다. 1.4.2.그래서 나 는 소스 코드 로 설치 하 는 것 을 선택 했다.SVN 클 라 이언 트 도 구 를 설치 하 는 것 은 NMP 설정 보다 훨씬 간단 합 니 다. 먼저 서버 에서 필요 한 소스 패 키 지 를 다운로드 합 니 다.
view source
print ? 1 wget http://labs.xiaonei.com/apache-mirror/apr/apr-1.3.9. tar .gz 2 wget http://labs.xiaonei.com/apache-mirror/apr/apr-util-1.3.9. tar .gz 3 wget http://www.sqlite.org/sqlite-amalgamation-3.6.19. tar .gz 4 wget http://www.webdav.org/neon/neon-0.29.0. tar .gz 5 wget http://subversion.tigris.org/downloads/subversion-1.6.6. tar .bz2
그리고 원본 코드 를 / usr / local / src 디 렉 터 리 에 압축 을 풀 고 컴 파일 하여 설치 합 니 다.여기 주의 하 셔 야 합 니 다. sqllite 는 필수 입 니 다.
view source
print ? 01 tar zxvf apr-1.3.9. tar .gz -C /usr/ local /src/ 02 cd /usr/ local /src/apr-1.3.9/ 03 ./configure -prefix=/usr/ local /apr 04 make 05 make install 06 cat /etc/ld.so.conf 07

08 tar zxvf apr-util-1.3.9. tar .gz -C /usr/ local /src/ 09 cd /usr/ local /src/apr-util-1.3.9 10 ./configure --prefix=/usr/ local /apr-util --with-apr=/usr/ local /apr/ 11 make 12 make install 13 ldconfig - v 14

15 tar zxvf sqlite-amalgamation-3.6.19. tar .gz -C /usr/ local /src/ 16 cd /usr/ local /src/sqlite-3.6.19/ 17 ./configure --prefix=/usr/ local /sqlite 18 make 19 make install 20

21 tar zxvf neon-0.29.0. tar .gz -C /usr/ local /src/ 22 cd /usr/ local /src/neon-0.29.0 23 ./configure --prefix=/usr/ local /neon -- enable -shared 24 make 25 make install
svn 을 설치 하기 위해 서 는 두 가지 작업 이 필요 합 니 다. 그렇지 않 으 면 컴 파일 에 실 패 했 습 니 다. 하 나 는 expat 와 expat - devel 패 키 지 를 설치 하 는 것 입 니 다. 다른 하 나 는 libiconv 라 이브 러 리 를 시스템 설정 에 포함 시 키 는 것 입 니 다.
view source
print ? 1 yum install expat 2 yum install expat-devel 3

4 vi /etc/ld.so.conf 5 # 6 /usr/ local /lib 7 # 8 ldconfig
마지막 컴 파일 설치 svn 클 라 이언 트
view source
print ? 1 tar -jxvf subversion-1.6.6. tar .bz2 -C /usr/ local /src/ 2 cd /usr/ local /src/subversion-1.6.6 3 ./configure --prefix=/usr/ local /svn --with-apr=/usr/ local /apr --with-apr-util=/usr/ local /apr-util --with-sqlite=/usr/ local /sqlite --with-neon=/usr/ local /neon 4 make 5 make install
설치 가 완료 되 었 습 니 다. svn 의 bin 디 렉 터 리 를 시스템 환경 변수 에 포함 시 키 면 나중에 어디서 든 접근 할 수 있 습 니 다.
view source
print ? 1 export PATH=/usr/ local /svn/bin:$PATH
svn -- version 을 입력 하면 버 전 을 검사 할 수 있 습 니 다.이로써 리 눅 스 의 svn 설치 가 완료 되 었 습 니 다.

좋은 웹페이지 즐겨찾기