svn server 為只支持http://協(xié)議的windows;
test web server 為as4,現(xiàn)需安裝svn客戶端方便同步代碼
網(wǎng)上找了下都是講如何安裝svn server的,我只需要一個支持http協(xié)議的客戶端哈,不想裝apache。
安裝所需軟件
apr,apr-util,sqlite,neon,subversion
1.下載軟件
- wget http://labs.xiaonei.com/apache-mirror/apr/apr-1.3.7.tar.gz
- wget http://labs.xiaonei.com/apache-mirror/apr/apr-util-1.3.8.tar.gz
- wget http://www.sqlite.org/sqlite-amalgamation-3.6.16.tar.gz
- wget http://www.webdav.org/neon/neon-0.28.4.tar.gz
- wget http://subversion.tigris.org/downloads/subversion-1.6.3.tar.bz2
- apt-get install libxml2 libxml2-dev expat
- sudo apt-get install zlib1g-dev
- apt-get install expat libexpat1 libexpat1-dev
2.安裝apr
- tar zxvf apr-1.3.7.tar.gz
- cd apr-1.3.7
- ./configure -prefix=/usr/local/apr
- make
- make install
- cat /etc/ld.so.conf
- echo /usr/local/apr/lib >> /etc/ld.so.conf
3.安裝apr-util
- tar zxvf apr-util-1.3.8.tar.gz
- cd apr-util-.1.3.8
- ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/
- make
- make install
- echo /usr/local/apr-util/lib >> /etc/ld.so.conf
- ldconfig -v
4.安裝sqlite
- tar zxvf sqlite-amalgamation-3.6.16.tar.gz
- cd sqlite-3.6.16/
- configure --prefix=/usr/local/sqlite
- make
- make install
5.安裝neon
不需要支持http協(xié)議可以略掉安裝
- tar zxvf neon-0.28.4.tar.gz
- cd neon-0.28.4
- ./configure --prefix=/usr/local/neon --enable-shared
- make
- make install
方式二:解壓后重命名為neon,移動至subversion編譯目錄
但subversion編譯時好像找不到neon
報錯如下
- configure: checking neon library
- An appropriate version of neon could not be found, so libsvn_ra_neon
- will not be built. If you want to build libsvn_ra_neon, please either
- install neon 0.28.4 on this system
- or
- get neon 0.28.4 from:
- http://www.webdav.org/neon/neon-0.28.4.tar.gz
- unpack the archive using tar/gunzip and rename the resulting
- directory from ./neon-0.28.4/ to ./neon/
- no suitable neon found
6.安裝subversion
- tar -jxvf subversion-1.6.3.tar.bz2
- cd subversion-1.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
- make
- make install
7.檢查測試
安裝后應(yīng)該有三個模塊
- /usr/local/svn/bin/svn --version
- svn,版本 1.6.3 (r38063)
- 編譯于 Jul 30 2009,14:31:41
- 版權(quán)所有 (C) 2000-2009 CollabNet。
- Subversion 是開放源代碼軟件,請參閱 http://subversion.tigris.org/ 站點(diǎn)。
- 此產(chǎn)品包含由 CollabNet(http://www.Collab.Net/) 開發(fā)的軟件。
- 可使用以下的版本庫訪問模塊:
- * ra_neon : 通過 WebDAV 協(xié)議使用 neon 訪問版本庫的模塊。
- - 處理“http”方案
- * ra_svn : 使用 svn 網(wǎng)絡(luò)協(xié)議訪問版本庫的模塊。 - 使用 Cyrus SASL 認(rèn)證
- - 處理“svn”方案
- * ra_local : 訪問本地磁盤的版本庫模塊。
- - 處理“file”方案
導(dǎo)出項(xiàng)目
- cd /opt/srv/
- /usr/local/svn/bin/svn export --username c1g --password 123456 http://192.168.1.9/pub37
參考: