我正在尝试在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
吗? 最佳答案
有同样的问题,可以解决。问题是,显然我在构建apache的目录中提供了apxs的路径。调用“ make install”后,make流程会将apache安装在配置过程中提供的目录中(在我的情况下为/ usr / local / apache2,并且apxs复制到“ bin”子目录中)。当我提供/ usr / local / apache2 / bin / apxs时,它突然工作了。
另外,尝试了一百次之后,我开始交换p和x,当然在这种情况下/ usr / local / apache2 / bin / axps不存在,因此您可能还需要注意这个细节; )