当前位置: 代码迷 >> 综合 >> 编译apache 报错error: Did not find working script at pcre-config
  详细解决方案

编译apache 报错error: Did not find working script at pcre-config

热度:48   发布时间:2023-12-12 19:56:35.0
  • checking for APR... no

        configure: error: APR not found. Please read the documentation.

  •  checking for pcre-config... pcre-config

configure: error: Did not find working script at pcre-config

环境:centos7.9.2009   httpd-2.4.53    apr-util-1.3.12 apr-1.4.5   pcre-8.10 

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz  
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz  
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
  1. 首先检查是否安装了apr apr-util pcre,编译安装前两者时指定安装路径/usr/local,安装pcre 默认安装路径安装。
  2. 在编译apache时指定前两者的路径:
--with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/

  相关解决方案