最简单的方式就是
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中就好了~