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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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库

[email protected] /usr/local$ svnadmin create svn/repository
[email protected]-xiluhua /usr/local$ cd svn/repository/
[email protected]-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
[email protected]-xiluhua /usr/local/svn/repository$ 

 

以上是关于apache svn subversion安装和配置(使用源码安装包方式)的主要内容,如果未能解决你的问题,请参考以下文章

RHEL6.4下搭建apache和subversion(SVN)

SVN版本管理系统的安装 CentOS + Subversion + Apache + Jsvnadmin

apache+svn配置过程

svn结合apache实现web也访问SVN

Linux 安装svn服务器

SVN(subversion)版本控制软件的安装与配置