configure: error: You must specify a valid --with-apxs path 报错tomcat与apache整合

configure: error: You must specify a valid --with-apxs path

在进行tomcat与apache整合时出现以上错误

tomcat与apache整合其实也很简单

最主要的一步,也时容易出错的一步就时安装JK Module模块

当我们运行如下命令时就会出错

sudo ./configure --with-apxs=/www/connectorsjk

[likilone@MyAliyunCentOS native]$ sudo ./configure --with-apxs=/www/connectorsjk
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... /bin/install -c
checking whether build environment is sane... yes
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... /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... /bin/perl
could not find /www/connectorsjk
configure: error: You must specify a valid --with-apxs path
错误提示是说,需要perl支持,在/www/connectorsjk文件夹下没有找到相关支持,即apxs

这里很多都会取安装perl软件,包括相关的包

但是,我们却发现,这些软件已经安装

原来这个错误是说编译JK Module模块需要apxs支持

而apxs在那里呢

apxs在这里 /您的目录/apache/bin/apxs

就是说在apache目录下的bin目录下

自此,问题解决



爆款云服务器s6 2核4G 低至0.46/天,具体规则查看活动详情Blog Img