注:本位非原创,只是在原作者基础之上略有改进与添加内容,请支持原作者,谢谢
原作者博客:http://51power.blog.51cto.com/3549599/1663904
SVN简介
SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS迁移到Subversion
演示环境
1.Centos6.5 x64
2.关闭iptables、selinux
# /etc/init.d/iptables stop //关闭防火墙 # chkconfig iptables off //设置开机不启动
# vim /etc/selinux/config //关闭selinux # SELINUX=enforcing改为SELINUX=disabled
软件版本
apr-1.5.1.tar.gz
apr-util-1.5.3.tar.gz
httpd-2.2.27.tar.gz
sqlite-amalgamation-3.6.17.tar.gz
sqlite-amalgamation-3071501.zip
subversion-1.8.10.tar.gz
SVN搭建
1.安装Apache
# tar zxf httpd-2.2.27.tar.gz # cd httpd-2.2.27 # ./configure --prefix=/usr/local/svn/apache --enable-dav --enable-so --enable-modules=most # make && make install
2.安装apr
# tar zxf apr-1.5.1.tar.gz # cd apr-1.5.1 # ./buildconf #验证系统是否已经安装python、autoconf、libtool,如果没有安装,使用yum或rpm方式安装相应包即可。
# ./configure --prefix=/usr/local/svn/apr # make && make install
3.安装apr-util
# tar zxf apr-util-1.5.3.tar.gz # cd apr-util-1.5.3 # ./configure --prefix=/usr/local/svn/apr-util --with-apr=/usr/local/svn/apr # make && make install
4.安装sqlite
注:由于正常安装sqlite后,在配置svn时会报错
configure时遇到错误: get the sqlite 3.7.15.1amalgamation from: http://www.sqlite.org/sqlite-amalgamation-3071501.zip unpack the archive usingunzip and rename the resulting directory to: /app/soft/subversion-1.8.10/sqlite-amalgamation configure: error:Subversion requires SQLite
解决依赖关系办法
# tar zxf sqlite-amalgamation-3.6.17.tar.gz # unzip sqlite-amalgamation-3071501.zip # cp sqlite-amalgamation-3071501/* sqlite-3.6.17 # cd sqlite-3.6.17/ # ./configure --prefix=/usr/local/svn/sqlite # make && make install
5.安装svn
# tar zxf subversion-1.8.10.tar.gz # cd subversion-1.8.10 # ./configure --prefix=/usr/local/svn/subversion --with-apxs=/usr/local/svn/apache/bin/apxs --with-apr=/usr/local/svn/apr/bin/apr-1-config --with-apr-util=/usr/local/svn/apr-util/bin/apu-1-config --with-sqlite=/usr/local/svn/sqlite/ --with-openssl --with-zlib--enable-maintainer-mod # make && make install
时间: 2024-10-01 04:26:11