使用httpd 2.4.17编译mod_cluster-未创建rules.mk



我需要使用https 2.4.17从mod_cluster编译模块,而我在编译模块时遇到了问题。该过程在制作步骤失败。

我已经成功地将httpd2.4.17构建到和rpm中,并顺利安装。

我正在从以下位置的源代码中提取mod_cluster:https://github.com/modcluster/mod_cluster

我正在按照以下步骤构建mod_cluster:

cd /mod_cluster//native/advertise   # Advertise the first of four modules
./buildconf
./configure --with-apxs=/usr/bin/apxs

正在检查Apache httpd安装。。。APXS是/usr/bin/APXSapxs_support为true在/usr/bin/apxs第222行的串联(.)或字符串中使用未初始化的值。配置:创建/配置状态config.status:创建Makefile

制作

Makefile:10://build/rules.mk:没有这样的文件或目录make:***没有规则可作为目标"//build/rules.mk"。停止。

我认为make文件中的top_builddir指令存在问题。

注意:没有/build/rules.mk写入/

# Makefile.in for mod_proxy_cluster
# copy the source in the httpd Apache source tree
APACHE_BASE = /usr
top_builddir = /
# For .deps.
builddir = /srv/apache/mod_cluster-master/native/advertise
# For the apache includes
top_srcdir = /usr
include $(top_builddir)/build/rules.mk
SH_COMPILE = $(LIBTOOL) --mode=compile $(BASE_CC) -I../include -prefer-pic -c      $< && touch $@
all: mod_advertise.so
mod_advertise.so: mod_advertise.la
     $(top_builddir)/build/instdso.sh SH_LIBTOOL='$(LIBTOOL)' mod_advertise.la `pwd`
mod_advertise.la: mod_advertise.slo
    $(SH_LINK) -rpath $(libexecdir) -module -avoid-version  mod_advertise.lo
clean:
    rm -f *.o *.lo *.slo *.so
    rm -rf .libs

感谢

mod_cluster master使用httpd 2.4.17编译得很好。你可以看看我的Dockerfile,它展示了它是如何完成的。我刚刚触发了一个新的DockerHub构建,它最终将在DockerHub上可用。

为了绝对确定,我在一分钟前手动在Fedora22 x86_64上重复了这个过程:

  • wget http://archive.apache.org/dist/httpd/httpd-2.4.17.tar.gz
  • wget http://archive.apache.org/dist/httpd/httpd-2.4.17-deps.tar.gz
  • CCD_ 3。。。,cd
  • ./configure --prefix=/opt/httpd-2.4.17-build --with-mpm=worker --enable-mods-shared=most --enable-maintainer-mode --with-expat=builtin --enable-ssl --enable-proxy --enable-proxy-http --enable-proxy-ajp --with-threads
  • git clone https://github.com/modcluster/mod_cluster.git
  • cd mod_cluster/native
  • modules="advertise mod_cluster_slotmem mod_manager mod_proxy_cluster";for module in $modules;do cd $module;./buildconf;./configure --with-apxs=/opt/httpd-2.4.17-build/bin/apxs;make clean;make;cd ..;done;

所以,很明显,问题出在您的httpd构建上。你能分享一下你的src-rpm吗?

相关内容

最新更新