linux离线安装svn

//1,创建文件夹,上传subversion-1.9.9.tar.gz

mkdir /home/svn

//2,创建文件夹,上传apr-util-1.6.1.tar.gz、apr-1.6.5.tar.tar.gzdependPackage

mkdir /home/svn/dependPackage/

//3,解压文件及依赖文件   

cd /home/svn

tar -zxvf subversion-1.9.9.tar.gz

 

cd /home/svn/dependPackage/

tar -zxvf apr-1.6.5.tar.gz

tar -zxvf apr-util-1.6.1.tar.gz

tar -zxvf expat-2.1.0.tar.gz

unzip sqlite-amalgamation-3071501.zip

tar -zxvf zlib-1.2.11.tar.gz

//4,按照以下顺序编译依赖文件

cd zlib-1.2.11/

./configure

make && make install

 

//expat被依赖于apr-util

cd expat-2.1.0/

./configure

make && make install

 

cd apr-1.6.5/

./configure --with-apr=/usr/local/apr

make && make install

 

cd apr-util-1.6.1/

./configure --with-apr=/usr/local/apr

make && make install

 

mv sqlite-amalgamation-3071501 ../subversion-1.9.9

修改sqlite-amalgamation-3071501名字为:sqlite-amalgamation

//5,安装subversion

cd /home/svn/subversion-1.9.9/

./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr

 

cd /home/svn/subversion-1.9.9/

./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr

 

cd /home/svn/subversion-1.9.9/

make && make install

 

//6,初始化svn库

猜你喜欢

转载自blog.csdn.net/weixin_39496190/article/details/86573894