我的解决方法是yum -y install pcre-devel
附带安装脚本
#! /bin/bash
yum -y install gcc-c++ expat-devel pcre-devel
cd ./apr-1.7.4
./configure --prefix=/usr/local/apr
make && make install
cd ../apr-util-1.6.3
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
cd ../httpd-2.4.58
./configure --prefix=/usr/local/httpd --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make && make install