apache依赖的软件:openssl、apr-util、apr
svn依赖的软件:openssl、apr-util、apr、sqlite、neon
下载各软件链接:
apache:http://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.2.23.tar.gz
apr-util:http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.5.1.tar.gz
apr:http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.4.6.tar.gz
openssl:http://openssl.org/source/openssl-1.0.1c.tar.gz
subversion:http://www.fayea.com/apache-mirror/subversion/subversion-1.7.7.tar.gz
sqlite:http://sqlite.org/sqlite-autoconf-3071401.tar.gz
neon:http://www.webdav.org/neon/neon-0.29.6.tar.gz
shell# groupadd svn shell# useradd svn shell# mkdir /home/svn shell# chown -R svn:svn /home/svn创建用户svn以及用户组svn,该用户以及用户组将用在以后软件编译、路径权限设置以及apache和svn的运行时用户。
shell# tar -zxvf apr-1.4.6.tar.gz shell# cd apr-1.4.6/ shell# ./configure --prefix=/home/svn/apps/apr shell# make && make installSTEP02 安装apr-util
shell# tar -zxvf apr-util-1.5.1.tar.gz shell# cd apr-util-1.5.1/ shell# ./configure --prefix=/home/svn/apps/apr-util --with-apr=/home/svn/apps/apr/ shell# make & make installSTEP03 安装SQLite
shell# tar -zxvf sqlite-autoconf-3071401.tar.gz shell# cd sqlite-autoconf-3071401/ shell# ./configure --prefix=/home/svn/apps/sqlite shell# make && make installSTEP04 安装openssl
shell# tar -zxvf openssl-1.0.1c.tar.gz shell# cd openssl-1.0.1c/ shell# ./config --prefix=/home/svn/apps/ssl shared shell# make && make installSTEP05 安装neon
shell# tar -zxvf neon-0.29.6.tar.gz shell# cd neon-0.29.6/ shell# ./configure --prefix=/home/svn/apps/neon --with-ssl --with-libs=/home/svn/apps/ssl --enable-shared shell# make && make installneon并非必要软件,但如果需要通过http或者https协议访问版本库,那就必须安装。我们知道,SVN有ra_dav(http,https)、ra_svn(svn原生协议)、ra_local(本地路径)三种存取模块,系统为我们默认安装了ra_svn和ra_local,我们自己安装neon库,从而让svn支持ra_dav存储模块。下面是不安装neon的情况下,svn的输出:
shell# svn --version The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme当我们正确安装neon,svn已经支持ra_dav之后,执行上述命令应该是如下输出:
shell# svn --version The following repository access (RA) modules are available: * ra_neon : Module for accessing a repository via WebDAV protocol using Neon. - handles 'http' scheme - handles 'https' scheme * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme
shell# tar -zxvf httpd-2.2.23.tar.gz shell# cd httpd-2.2.23 shell# ./configure --prefix=/home/svn/apps/apache --with-apr=/home/svn/apps/apr --with-apr-util=/home/svn/apps/apr-util --with-ssl=/home/svn/apps/ssl --enable-dav --enable-so --enable-ssl --enable-rewrite shell# make & make install
shell# tar -zxvf subversion-1.7.7.tar.gz shell# cd subversion-1.7.7 shell# ./configure --prefix=/home/svn/apps/svn --with-apr=/home/svn/apps/apr --with-apr-util=/home/svn/apps/apr-util --with-ssl=/home/svn/apps/ssl --with-sqlite=/home/svn/apps/sqlite --with-apxs=/home/svn/apps/apache/bin/apxs --with-neon=/home/svn/apps/neon --with-openssl shell# make & make install