2017-05-02 98 views
1

我試圖使用make install命令安裝Apache。我以root身份運行該命令。這是我得到的錯誤信息。make *** [install-recursive]:錯誤1 fedora

libtool: link: cannot find the library `/home/nicole/httpd-2.4.25/srclib/apr-util/xml/expat/libexpat.la' or unhandled argument `/home/nicole/httpd-2.4.25/srclib/apr-util/xml/expat/libexpat.la' 
Makefile:93: recipe for target 'libaprutil-1.la' failed 
make[2]: *** [libaprutil-1.la] Error 1 
make[2]: Leaving directory '/home/nicole/httpd-2.4.25/srclib/apr-util' 
/home/nicole/httpd-2.4.25/build/rules.mk:75: recipe for target 'install-recursive' failed 
make[1]: *** [install-recursive] Error 1 
make[1]: Leaving directory '/home/nicole/httpd-2.4.25/srclib' 
/home/nicole/httpd-2.4.25/build/rules.mk:75: recipe for target 'install-recursive' failed 
make: *** [install-recursive] Error 1 

我必須安裝APR和aprutil爲了使用命令運行./configure --enable-MODS的共享=所有前綴=的/ usr /本地/ Apache配置Apache。那個命令成功了,所以「乾淨」

請幫忙!

回答

0

所以我想清楚我做錯了什麼...... 輸入我的命令後./configure --enable-mods-shared = all --prefix =/usr/local/apache --with-pcre =/usr/local/pcre並運行它... 在運行「make install」之前,我忘了執行「make clean」命令,然後執行「make」命令