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

环境:虚拟机下centos7

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

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

3.安装依赖包

apr
apr-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/repository
xiluhua@vm-xiluhua /usr/local$ cd svn/repository/
xiluhua@vm-xiluhua /usr/local/svn/repository$ ll
总用量 16
drwxrwxr-x. 2 xiluhua xiluhua   51 2016/10/03 22:03:40 conf
drwxrwsr-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 format
drwxrwxr-x. 2 xiluhua xiluhua 4096 2016/10/03 22:03:40 hooks
drwxrwxr-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.txt
xiluhua@vm-xiluhua /usr/local/svn/repository$ 

 

posted @ 2016-10-03 22:09  xiluhua  阅读(1446)  评论(0编辑  收藏  举报