linux下安装 svn subversion-1.7.7
1、准备所需要的软件安装包
apr-1.4.6.tar.gz
apr-util-1.5.1.tar.gz
下载:http://apr.apache.org/download.cgi
sqlite-autoconf-3071401.tar.gz
下载:http://www.sqlite.org/download
subservion-1.7.7.tar.gz
下载:http://subversion.apache.org/download/
2、安装apr-1.4.6.tar.gz
#tar -zxvf apr-1.4.6.tar.gz
#cd apr-1.4.6
#./configure --prefix=/usr/local/apr
#make
#make install
验证:/usr/local/apr/bin/apr-1-config --version
3、安装apr-util-1.5.1.tar.gz
#tar -zxvf apr-util-1.5.1.tar.gz
#cd apr-util-1.5.1
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install
验证:/usr/local/apr-util/bin/apu-1-config --version
4、解压sqlite-autoconf-3071401.tar.gz
#tar zxvf sqlite-autoconf-3071401.tar.gz
解压subversion-1.7.7.tar.gz
#tar zxvf subversion-1.7.7.tar.gz
为subversion添加sqlite-amalgamation 文件夹
#mkdir -p ../subversion-1.7.7/sqlite-amalgamation
拷贝文件sqlite3.c到subversion中
#cp sqlite3.c ../subversion-1.7.7/sqlite-amalgamation/
#cd subversion-1.7.7
#./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --without-berkeley-db
#make
#make install
5、配置环境变量
#vi /etc/profile
添加如下代码:
#set svn environment
PATH=$PATH:/usr/local/svn/bin
export PATH
PS:
#svn --username=*** co svn_path local_path