apache --安装

为了使用Nfsen,需要安装许多东西

开始时在官网上下了http://httpd.apache.org/download.cgi#verify

linux apache2.2.23

试着装了一下,当时linux中的libtool版本是1.5.22

./configure

make

make install

安装apache时出现configure: error: Cannot use an external APR with the bundled APR-util

在网上找的解决办法大致是这样的

configure: error: Cannot use an external APR with the bundled APR-util
根据错误信息进行解决
安装apr和apr-util
cd httpd-2.2.17/srclib/apr
./configure --prefix=/usr/local/apr
make && make install
cd ../apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
按照上面的做法,执行到第一步的时候就出现了问题
./configure --prefix=/usr/local/apr
make的时候出现如下错误:
libtool: link: you must specify an output file
libtool: link: Try `libtool --help --mode=link' for more information.
make[1]: *** [libapr-.la] 错误 1
make[1]: Leaving directory `/root/fprobe-1.1/httpd-2.2.23/apr-1.4.6'
make: *** [all-recursive] 错误 1
在网上没找到好的办法
猜是libtool的版本太低的原因
就在网上下了新版本的libtool,安装的时候也是,到make的时候提示***缺少分隔符,于是打开Makefile一看太多了,就放弃自己安装新的libtool
最后干脆换了台linux,libtool的版本是2.4
把以前安装失败的apache安装包copy到这台linux上,结果简单的运行了安装命令
./configuer
make
make install
结果就安装成功了~\(T o T)/~
 

 

 

 

posted on 2012-09-24 11:40  龙沙宝石  阅读(561)  评论(0编辑  收藏  举报

导航