环境:虚拟机下centos7
1.下载安装包:http://subversion.apache.org/download.cgi
2.上传到指定文件夹并解压
3.安装依赖包
apr apr-utilsqlite-amalgamation下载地址:http://apr.apache.org/download.cgi
安装方法,apr:./configure --prefix=/usr/local/aprmake & make install
安装方法,apr-util:./configure --prefix=/usr/local/apr-utilmake & 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$
时间: 2024-12-26 20:18:07