编译httpd2.4.65用来提供svn服务

2025-11-25 13:51

查看安装文档

https://httpd.apache.org/docs/2.4/install.html

下载apr和apr-util

解压到 /httpd_source_tree_root/srclib/apr and /httpd_source_tree_root/srclib/apr-util (be sure the directory names do not have version numbers; for example, the APR distribution must be under /httpd_source_tree_root/srclib/apr/) and use ./configure's --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util.

https://apr.apache.org/download.cgi


进入httpd目录,编译

./configure --prefix=/usr/local/apache2 \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr \
--enable-so \
--enable-rewrite \
--enable-mods-shared=all \
--enable-dav \
--enable-maintainer-mode

安装subversion开发库

dnf install subversion subversion-devel -y

编译svn

./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apache-libexecdir=/usr/local/apache2/modules --with-lz4=internal --with-utf8proc=internal

# 工具配置