安装Apache 2.2

6

所以我按照指示进行了操作:

./configure --prefix=/fmac/users/f****/apacheServer \
  --exec-prefix=/fmac/users/f*****/apaacheServer

看起来它能够正常工作,没有任何错误。

然后我执行:

make
make install

我在安装过程中遇到了以下错误:

libtool: install: error: cannot install `libaprutil-1.la' to a directory not
                         ending in /usr/local/apache2/lib

有没有想法,为什么还需要设置其他配置变量?


这个问题可能会在ServerFault(http://serverfault.com)引起更多关注,因为它并不严格涉及编程。 - Martin Törnwall
2个回答

22

如果有人在Google上搜索这个答案,我找到了解决方法。我需要执行以下操作:

make clean

在我的httpd-NN构建根目录中(其中NN是您正在构建的httpd版本)。

然后它就可以工作了。


在除了Apache之外的其他情况下,这对我也完美地起作用。 - SebGR

0
这个方法对我有用:
如果你正在安装apache、apr、apr-util到不同的位置(而非默认位置),并且没有root权限,则需要将apache配置为:
./configure  --prefix=path/to/your/apachefolder --with-apr=/path/for/apr -with-apr-util=/path/for/apr-util --with-pcre=/path/for/pcre

这对我有用。希望对你有所帮助。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接