免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1307 | 回复: 0
打印 上一主题 下一主题

httpd+subversion [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-16 21:36 |只看该作者 |倒序浏览
httpd下载地址:http://httpd.apache.org/download.cgi
subversion下载地址:http://subversion.tigris.org/

我下载的是subversion-1.6.3.tar.bz2+httpd-2.2.11.tar.gz

1.先安装httpd-2.2.11.tar.gz

wds@<10.54.38.18>:# tar xvjf httpd-2.2.11.tar.gz
wds@<10.54.38.18>:# cd httpd-2.2.11
wds@<10.54.38.18>:# ./configure --prefix=/data1/apache2 --enable-so --enable-maintainer-mode --enable-dav   <-后边这个别忘记加了要不在装完svn后启动apache会有问题
wds@<10.54.38.18>:# make && make install
wds@<10.54.38.18>:#


2.安装 subversion

wds@<10.54.38.18>:# tar xvjf subversion-1.6.3.tar
wds@<10.54.38.18>:# ./configure --prefix=/data1/subversion --with-apxs=/data1/apache2/bin/apxs  --with-apr-util=/data1/apache2/bin/apu-1-config --with-apr=/data1/apache2/bin/apr-1-config  

在以上编译过程中可能会出现 configure: error: Subversion requires SQLite
可以http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz 可以下载到最新的Sqlite版本sqlite-amalgamation-3.6.13.tar.gz安装Sqlite3.6.13 tar zxvf sqlite-amalgamation-3.6.13.tar.gz 进入文件夹sqlite-amalgamation找到sqlite3.c将其复制到
subversion-1.6.2/sqlite-amalgamation/sqlite3.c  

wds@<10.54.38.18>:# make && make install

3.环境配置

mkdir -p /data1/subversion/
svnadmin create  /data1/subversion/bsso


4.配置apache

   <Location /svn>
       DAV svn
       SVNParentPath /data1/subversion/bsso
       AuthType Basic
       AuthName "Subversion repository"
       AuthUserFile /data1/subversion/passwd
       Require valid-user
   </Location>

/data1/apache2/bin/htpasswd -c /data1/subversion/passwd asdf
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP