gpt4 book ai didi

apache - 在 ubuntu 上构建 mod_jk 时出现 "You must specify a valid --with-apxs path"

转载 作者:行者123 更新时间:2023-11-28 22:33:51 24 4
gpt4 key购买 nike

我正在尝试在 ubuntu 上为 Apache 构建 mod_jk,但是当我发出:

./configure --with-apxs=/usr/local/apache/bin/apxs 

我收到以下错误:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/Arbi/Downloads/tomcat-connectors-1.2.40-src/native/scripts/build/unix/missing: Unknown `--is-lightweight' option
Try `/home/Arbi/Downloads/tomcat-connectors-1.2.40-src/native/scripts/build/unix/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for test... /usr/bin/test
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
could not find /usr/local/apache/bin/apxs
configure: error: You must specify a valid --with-apxs path

Apache 已经安装,目录/usr/local/apache/bin/ 存在,apxs 也可以在那里找到!知道为什么会出现此错误以及如何构建 mod_jk 吗?

最佳答案

我遇到了同样的问题,但我有解决方案。

首先,我没有找到系统找不到apxs文件的原因。

但是您也可以使用选项定义 Apache 目录

--with-apche=DIR

示例:

./configure --with-apache=/usr/local/bin/apache

关于apache - 在 ubuntu 上构建 mod_jk 时出现 "You must specify a valid --with-apxs path",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24556040/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com