Apache ./configure 找不到 pcre-config 脚本

Sha*_*awn 10 apache-http-server installation

我正在尝试在 Red Hat 上安装 Apache。这是一个我无法完全控制的系统(我的系统管理员给了我一个工作目录)。因此,除了 Apache 2.4.7 之外,我还下载、配置并安装了 APR、APR-Util 和 PCRE。

我为 APR 运行了以下命令:

./configure --prefix=/u01/app/apache/apr/
make
make install
Run Code Online (Sandbox Code Playgroud)

收到警告记得运行

libtool --finish /usr/local/apr/lib
Run Code Online (Sandbox Code Playgroud)

我把它改成

libtool --finish /u01/app/apache/apr/lib/
Run Code Online (Sandbox Code Playgroud)

它说它在那个位置安装了图书馆

同样,对于 APR-Util,运行:

./configure --prefix=/u01/app/apache/apr-util/ --with-apr=/u01/app/apache/apr/bin
make
make install
Run Code Online (Sandbox Code Playgroud)

告诉我库安装在 /u01/app/apache/apr-util//lib

接下来,PCRE:

./configure --prefix=/u01/app/apache/pcre/ --with-apr=/u01/app/apache/apr/bin --with-apr-util=/u01/app/apache/apr-util/bin
make
make install
Run Code Online (Sandbox Code Playgroud)

到目前为止,没有问题。现在我尝试配置apache

./configure --prefix=/u01/app/apache/apache247/ --with-apr=/u01/app/apache/apr/bin --with-apr-util=/u01/app/apache/apr-util/bin --with-pcre=/u01/app/apache/pcre/bin
Run Code Online (Sandbox Code Playgroud)

它找到了 APR 和 APR-Util,但当然,我收到错误“在 /u01/app/apache/pcre/bin 中找不到 pcre-config 脚本”。为什么,我不知道,因为文件在那个位置。我究竟做错了什么?谢谢!

Sha*_*awn 15

我通过指定 pcre-config 文件的完整路径来解决它。换句话说,而不是:

--with-pcre=/u01/app/apache/pcre/bin
Run Code Online (Sandbox Code Playgroud)

我做了:

--with-pcre=/u01/app/apache/pcre/bin/pcre-config
Run Code Online (Sandbox Code Playgroud)