make *** [install-recursive]:错误1 fedora

时间:2017-05-02 20:32:41

标签: linux apache makefile fedora

我尝试使用make install命令安装Apache。我以root身份运行命令。这是我收到的错误消息。

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才能使用命令配置Apache ./configure --enable-mods-shared = all --prefix = / usr / local / apache。这个命令很成功,所以#34; make clean"

请帮忙!

1 个答案:

答案 0 :(得分:1)

所以我弄清楚我做错了什么...... 键入我的命令./configure --enable-mods-shared = all --prefix = / usr / local / apache --with-pcre = / usr / local / pcre并运行它... 我忘了做"干净"命令后跟" make"运行之前的命令" make install"