1.寻找linux下的源码
去寻找rpm文件或者gz文件 都是可以的 , 直接输入地址,
2.解压到同一个目录
例如:
先一起拷贝到/usr/local/下,然后分别解压以上两个包裹,会在/usr/local/下生成一个文件夹subversion-1.6.12
命令:tar xzvf subversion-1.6.12.tar.gz
3.编译
进入文件夹subversion-1.6.12,then enter command:
./configure --prefix=/usr/local/svn
the above is an example:/usr/local/svn .
the end of the command also can refer such as --with-openssl=***** .
4.make
(also prepare to input make clean)
5.make install
Notes:
1.if your configure info show some warning as BDB words.you can install it or not .
2.last you should test it.
输入命令:svn --version
出现的版本有误。证明你的系统自带1.4的系统或其他。
所以,你可以把修改配置文件:profile,但我尝试了,无效。
所以我直接把/usr/bin/下的svn文件都替换成安装好的svn里的新版本文件
例如:
cp -a /usr/local/svn/bin/svnserve /usr/bin/svnserve
like this.....and so on.