首页 > 代码库 > apache svn subversion安装和配置(使用源码安装包方式)

apache svn subversion安装和配置(使用源码安装包方式)

环境:虚拟机下centos7

1.下载安装包:http://subversion.apache.org/download.cgi

2.上传到指定文件夹并解压

3.安装依赖包

aprapr-util
sqlite-amalgamation
下载地址:http://apr.apache.org/download.cgi

安装方法,apr:
./configure --prefix=/usr/local/apr
make & make install
安装方法,apr-util:
./configure --prefix=/usr/local/apr-util
make & make install

如不进行以上依赖包的安装在执行./configure配置时,会遇到如下问题:

  configure: WARNING: APR not found  
The Apache Portable Runtime (APR) library cannot be found. Please install APR on
this system and configure Subversion with the appropriate –with-apr option. You probably need to do something similar with the Apache Portable Runtime Utility (APRUTIL) library and then configure Subversion with both the –with-apr and –with-apr-util options.

 

创建svn库

xiluhua@vm-xiluhua /usr/local$ svnadmin create svn/repositoryxiluhua@vm-xiluhua /usr/local$ cd svn/repository/xiluhua@vm-xiluhua /usr/local/svn/repository$ ll总用量 16drwxrwxr-x. 2 xiluhua xiluhua   51 2016/10/03 22:03:40 confdrwxrwsr-x. 6 xiluhua xiluhua 4096 2016/10/03 22:03:40 db-r--r--r--. 1 xiluhua xiluhua    2 2016/10/03 22:03:40 formatdrwxrwxr-x. 2 xiluhua xiluhua 4096 2016/10/03 22:03:40 hooksdrwxrwxr-x. 2 xiluhua xiluhua   39 2016/10/03 22:03:40 locks-rw-rw-r--. 1 xiluhua xiluhua  229 2016/10/03 22:03:40 README.txtxiluhua@vm-xiluhua /usr/local/svn/repository$ 

 

apache svn subversion安装和配置(使用源码安装包方式)