输出的存在是有原因的。

输出的存在是有原因的。
Making all in srclib
make[1]: Entering directory '/root/software/httpd-2.4.51/srclib'
make[1]: Leaving directory '/root/software/httpd-2.4.51/srclib'
Making all in os
make[1]: Entering directory '/root/software/httpd-2.4.51/os'
Making all in unix
make[2]: Entering directory '/root/software/httpd-2.4.51/os/unix'
make[3]: Entering directory '/root/software/httpd-2.4.51/os/unix'
make[3]: Nothing to be done for 'local-all'.
make[3]: Leaving directory '/root/software/httpd-2.4.51/os/unix'
make[2]: Leaving directory '/root/software/httpd-2.4.51/os/unix'
make[1]: Leaving directory '/root/software/httpd-2.4.51/os'
Making all in server
make[1]: Entering directory '/root/software/httpd-2.4.51/server'
Making all in mpm
make[2]: Entering directory '/root/software/httpd-2.4.51/server/mpm'
Making all in event
make[3]: Entering directory '/root/software/httpd-2.4.51/server/mpm/event'
make[4]: Entering directory '/root/software/httpd-2.4.51/server/mpm/event'
make[4]: Nothing to be done for 'local-all'.
make[4]: Leaving directory '/root/software/httpd-2.4.51/server/mpm/event'
make[3]: Leaving directory '/root/software/httpd-2.4.51/server/mpm/event'
make[2]: Leaving directory '/root/software/httpd-2.4.51/server/mpm'
make[2]: Entering directory '/root/software/httpd-2.4.51/server'
bison -pap_expr_yy --defines=/root/software/httpd-2.4.51/server/util_expr_parse.h \
    -o /root/software/httpd-2.4.51/server/util_expr_parse.c /root/software/httpd-2.4.51/server/util_expr_parse.y
/bin/bash: bison: command not found
make[2]: *** [Makefile:98: util_expr_scan.c] Error 127
make[2]: Leaving directory '/root/software/httpd-2.4.51/server'
make[1]: *** [/root/software/httpd-2.4.51/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/root/software/httpd-2.4.51/server'
make: *** [/root/software/httpd-2.4.51/build/rules.mk:75: all-recursive] Error 1

答案1

您缺少bison

/bin/bash: bison: command not found

来自您的日志。

sudo apt install bison应该处理这个问题。

输出的存在是有原因的。

输出告诉你什么发生了什么,以及出了什么问题。实际上,阅读它通常会给你提供从哪里开始的明确线索。在这种情况下,错误消息基本上是用清晰的英语写的:bison:未找到命令

顺便说一句,为什么需要从源代码编译 Apache?这会让维护工作变得更加繁重。对于需要频繁进行安全更新的软件,从存储库安装尤其有用。

相关内容