我是第一次在ubuntu12.04中安装Apache,我在链接Compiling and installing 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 --with-apr,它抛出一个错误
error: --with-apr requires a directory or file to be provided.请告诉我我哪里做错了
发布于 2015-11-30 17:16:16
尝试运行以下命令:
./configure --with-apr=<directory path where apr is installed>
例如:如果您的APR安装在/usr/local/apr(默认安装位置为APR),则应运行:
./configure --with-apr=/usr/local/apr
发布于 2015-04-08 16:47:24
当您在Apache源目录中运行./configure时,srclib指的是Apache目录中的srclib目录,而不是/usr/ ./srclib中。假设您将Apache目录放置为/usr/local/httpd-2.x.x,则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目录中运行configure。只需将apr和apr-util放在前面提到的位置,然后开始构建apache。
发布于 2018-06-11 13:23:29
./configure --with-apr=/usr/local/scrib/apr make make install
https://stackoverflow.com/questions/23260365
复制相似问题