在linux系统下安装svn

一、下载svn

      下载地址:http://subversion.apache.org/download/(我下载的是1.6.18版本)

      选择subversion-1.6.18.tar.gz 和 subversion-deps-1.6.18.tar.gz 下载

附:若是新系统,可能在安装svn前还缺少较多文件;

安装libtool-2.2.8.tar.gz

1.tar zxvf libtool-2.2.8.tar.gz   
2.cd libtool-2.2.8  
3../configure   
4.make   
5.make install

安装expat-2.1.0.tar.gz

tar zxvf expat-2.0.1.tar.gz
cd expat-2.0.1
./configure
make
make install

安装zlib-1.2.7.tar.gz

#tar -xvzf zlib-1.2.7.tar.gz
#cd zlib-1.2.7
#./configure
#make
# make install

安装openssl-1.0.1c.tar.gz (到http://www.openssl.org/source/下载最新版本)

1.解压软件:    
#tar xvfz  openssl-1.0.1c.tar.gz
2.安装
#cd openssl-1.0.1c.tar.gz
#./config  --prefix=/usr/local/openssl  //将当前安装配置生成到/usr/local/openssl目录
#make
#make install

二、安装svn

#cd /usr/local/
#tar zxvf subversion-1.6.18.tar.gz
#tar zxvf subversion-deps-1.6.18.tar.gz   //会自动解压到subversion-1.6.18下
#cd  subversion-1.6.18
#./configure  --with-openssl=/usr/local/openssl    //在配置检查时如果涉及到openssl则在/usr/local/openssl这个目录下去找
#make
#make install

完成后屏幕会提示

You don't seem to have Berkeley DB version 4.0.14 or newer
installed and linked to APR-UTIL.  We have created Makefiles which
will build without the Berkeley DB back-end; your repositories will
use FSFS as the default back-end.  You can find the latest version of
Berkeley DB here:
http://www.oracle.com/technology/software/products/berkeley-db/index.html

 表示svn安装完成。

验证svn是否安装成功:

输入命令:

#svnserve --version#svnserve --help

[root@localhost ~]# svnserve --version
svnserve, version 1.6.18 (r1303927)
   compiled Aug  1 2012, 00:03:18

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository back-end (FS) modules are available:

* fs_fs : Module for working with a plain file (FSFS) repository.

 安装成功。

相关推荐