[root@rhel native]# yum install -y gcc
[root@rhel native]# yum install -y gcc-c++
[root@rhel native]# ./configure
checking for target platform… unix
no apache given
no netscape given
configure: error: Cannot find the WebServer
发现是没有“apxs”命令, ./configure –with-apxs=/usr/sbin/apxs 编译时,要查找到此拓展工具才会继续进行编译,最后发现需要安装httpd-devel 包。
[root@rhel native]# yum install -y httpd-devel
[root@rhel native]# ./configure –with-apxs=/usr/sbin/apxs
apxs的相关信息可以参考下:https://www.rootop.org/ApacheManual/Apache2.2_zh_CN/programs/apxs.html
然后make安装
[root@rhel apache-2.0]# pwd
/root/jsp/tomcat-connectors-1.2.32-src/native/apache-2.0
[root@rhel apache-2.0]# ll mod_jk.so
-rwxr-xr-x 1 root root 1080859 09-08 14:35 mod_jk.so
[root@rhel apache-2.0]#
编译出mod_jk.so模块。
原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/772.html