器量大者,福泽必厚
全部博文(587)
分类: LINUX
2008-11-29 10:33:58
因为subversion和httpd(apache)的安装需要用到apr,apr-util或apache,故先安装apr和apr-util
去上下载,安装方法很简单的,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作为一个模块