日期:2014-05-17  浏览次数:20795 次

APACHE安装_cannot install `libaprutil-1.la' to a directory

在linux上安装了默认的apache2目录后,想安装apache3,进入安装,

执行了configure,make后

make install时出错: 
/bin/sh /usr/local/httpd-2.2.3/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2/lib
make[2]: *** [install] Error 1

猜测可能是以前安装用过./configure 来直接安装到/usr/local/apache2
导致安装文件已经不太“干净”

解决方法:
1、执行make clean后,重新编译安装。
2、删除source code目录,重新解压apache安装包,进行编译安装,可解决上面的问题。

另外,在处理FCGI安装时,也会默认安装到 apache2 目录,这时你需要 修改 Makefile 文件,将里面的目录进行更改。