Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2824974
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: LINUX

2008-11-29 10:33:58

Linux下subversion+apache的配置
公司开发项目的主管找到我,说是cvs不太好用,想用subversion来取代它,我原来只是听说过subversion,后来查了一下,subversion是cvs的替代品,号称下一代联合开发工具。
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

因为subversion和httpd(apache)的安装需要用到aprapr-utilapache故先安装aprapr-util


1:安装apr, Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

上下载,安装方法很简单的,tar -zxvf   *.tar.gz(如果下载的文件是*.tar.bz2,则用tar -jxvf  *.tar.bz2    *代表文件名)

cd *  //代表解压后生成的apr的目录名, Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

./configure --prefix=/opt/apr   //--prefix=/opt/apr指定apr的安装目录

make

make install

应该能讲apr安装在/opt目录下,你可以去/opt目录下查看,有个apr目录的

Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

安装apr-util,去上下载

apr-util的安装必须在apr的安装之后才可成功安装,因为它依赖于apr

tar -zxvf   apr-util *.tar.gz

cd  apr-util*  //代表解压后生成的apr-util*的目录名

./configure  --with-apr=/opt/apr --prefix=/opt/apr-util   //--with-apr=/opt/apr 指定apr的安装目录,--prefix=/opt/apr-util指定apr-util的安装目录

make

make install

应该能正常安装在/opt目录下!

3:安装apache  我把apahce放在了/home/software目录下,文件名为httpd-2.2.11.tar.bz2

cd /home/software

tar jxvf httpd-2.2.11.tar.bz2

cd httpd-2.2.11

./configure --with-apr=/opt/apr --with-apr-util=/opt/apr-util/ --enable-dav  --enable-so --enable-ssl --enable-maintainer-mode  --enable-mods-shared=all --enable-write --prefix=/usr/local/apache


重要参数说明:--with-apr=/opt/apr --with-apr-util=/opt/apr-util/apr-util如果不指定编译时会出错

--enable-dav 支持将subversion作为一个模块
--enable-so编译时必须添加到参数
--prefix=/usr/local/apache知道安装路径。
make
make install即可将软件安装在/usr/local目录下
4:安装subversion
我下载的subversion为subversion-1.5.2.tar.gz 也放到了/home/software目录下
cd /home/software
tar zxvf subversion-1.5.3.tar.gz
cd subversion-1.5.3
./configure --with-apr=/opt/apr --with-apr-util=/opt/apr-util/  --with-apxs2=/usr/local/apache/bin/apxs  --enable-ssl --enable-maintainer-mode --prefix=/usr/local/subversion
make
make install
即可将subversion安装在/usr/local目录下

没写完。。。。。。
阅读(1712) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~