make install時(shí)出錯(cuò)libtool: install: error: cannot install `libaprutil-1.la' to a directory
2015-10-23 16:04:23
15189
執(zhí)行了configure,make后
make install時(shí)出錯(cuò):
/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/apache22/lib
make[2]: *** [install] Error 1
猜測(cè)可能是以前安裝用過./configure 來直接安裝到/usr/local/apache2
導(dǎo)致安裝文件已經(jīng)不太“干凈”
解決方法:
1、執(zhí)行make clean后,重新編譯安裝。
2、刪除source code目錄,重新解壓apache安裝包,進(jìn)行編譯安裝,可解決上面的問題。