最簡單的方式就是 yum install subversion
Linux下安裝svn client
僅安裝 svn 的client:
1.下載下傳軟體 q s(h k�v;B _.O v;o
- wgethttp://archive.apache.org/dist/apr/apr-1.3.7.tar.gz
- wget http://archive.apache.org/dist/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
8Z ] U!i+q#I#|:J R k 2.安裝 apr BSD愛好者樂園4Q6F D T"]$l N J*R Q
- 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
] } / s } [ c s2C ^1S5k 3. 安裝apr-util BSD愛好者樂園 [!G e0|1V E P P8K
- 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
BSD愛好者樂園4? D(o;? R ]"f r p I3b y C
4.安裝sqlite BSD愛好者樂園�f ~:~"F c l S-/ V5R I
- tar zxvf sqlite-amalgamation-3.6.16.tar.gz
- cd sqlite-3.6.16/
- ./configure --prefix=/usr/local/sqlite
- make
- make install
i*n K%|�}6] 5.安裝neon
){9K:N v9~*{)b 不需要支援http協定可以略掉安裝BSD愛好者樂園5s V5d&s s b G
- tar zxvf neon-0.28.4.tar.gz
- cd neon-0.28.4
- ./configure --prefix=/usr/local/neon --enable-shared
- make
- make install
BSD愛好者樂園 q M#r0x O L#? }
在3時可能會提示configure: error: no XML parser was found: expat or libxml 2.x required,執行下面:
yum install expat-devel
帶上--enable-shared報錯時:執行下面的
CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/local/neon
方式二:解壓後重命名為neon,移動至subversion編譯目錄
'E(n s-Z$e s 但subversion編譯時好像找不到neon
n;v Y P _ 報錯如下BSD愛好者樂園/p3z V J r l
- 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
*X l P+F j x 6.安裝 subversion BSD愛好者樂園 y ^ z:O"H+^ I
- 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
7G M c/| E n q c 7.檢查測試 BSD愛好者樂園'@+t2u N;V o;N8])s X
/usr/local/svn/bin/svn --version
然後将svn的path加到系統path中就好了~