2011-02-10 155 views
6

所以我下面的方向和我所做的:安裝Apache 2.2

./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 

任何想法,爲什麼有一些其他配置變種我需要設置?

+0

這個問題可能會在ServerFault(http://serverfault.com)得到更多關注,因爲它與編程沒有嚴格關係。 – 2011-02-10 19:18:37

回答

21

如果有人在谷歌搜索這個答案,我想出瞭如何解決它。我只好:

make clean

在我httpd-NN構建根目錄(其中NN是的httpd正在構建的版本)。

然後它工作。

+0

謝謝我的完美工作:) – Harshit 2013-05-30 09:31:08

0

這件事情爲我工作:

,如果你是在一個不同的位置(非默認的除外)安裝Apache,四月,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 

這對我有效。我希望這有幫助。