![](/img/trans.png)
[英]Error while building apache2 2.4.3 with mod_authnz_ldap and apr/apr-util
[英]Apache Apr and Apr-util installlation?
我第一次在 ubuntu 12.04 中安装 Apache,我在链接编译和安装 apache中查找
它说我们应该首先拥有 APR 和 APR-util 我按照程序将它们解压到
/usr/local/srclib/apr
和/usr/local/srclib/apr-util
目录。 每一个地方都写着
./configure's --with-included-apr
现在我只在/usr/local/srclib/apr
中执行./configure
,然后在/usr/local/srclib/apr-util
中执行./configure
然后它会抛出错误configure: error: APR could not be located. Please use the --with-apr option.
configure: error: APR could not be located. Please use the --with-apr option.
然后我添加/configure --with-apr
它会引发错误
error: --with-apr requires a directory or file to be provided.
请告诉我我在这里做错了什么
尝试运行这个:
./configure --with-apr=<directory path where apr is installed>
例如:如果您的 APR 安装存在于/usr/local/apr
(APR 的默认安装位置),您应该运行:
./configure --with-apr=/usr/local/apr
当您在 Apache 源目录中运行./configure
时,./ ./srclib
表示 Apache 目录中的 srclib 目录,而不是 /usr/local。 假设你把你的 Apache 目录放置为 /usr/local/httpd-2.xx,那么 apr 和 apr-util 的路径如下:
/usr/local/httpd-2.x.x/srclib/apr
/usr/local/httpd-2.x.x/srclib/apr-util
现在您可以在配置 apache 时使用--with-included-apr
,而不会出现任何故障。 只需确保目录完全命名为 apr 和 apr-util 并且不包含任何版本号等,并且您不需要在 apr 和 apr-util 目录中运行配置。 只需按照提到的方式放置 apr 和 apr-util 并开始构建您的 apache。
将这两个实用程序重命名为 apr 和 apr-utils 没有任何版本尾,
从源安装时,请提及 apr 目录的确切路径,如下所示。
./configure --with-apr=/usr/local/scrib/apr make make install
cd httpd-2.4.x/srcib/
chmod +x */build/*
./configure --with-included-apr....
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.