我想构build最新的稳定版本的apache2。
我下载了源代码并将APR和APR-util放在srclib文件夹中,然后将目录更改为./srclib/apr并运行:
./configure --prefix=/usr/local/apr sudo make sudo make install
这似乎安装APR好,但是当我从apr-util目录运行./configure ,我收到错误:
configure: error: APR could not be located. Please use the --with-apr option.
使用./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr ,错误就会变成:
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
为什么找不到APR?
不build议将每个工具放在单独的目录中。 只要尝试使用--prefix=/usr/local APR和APR-Util。 或者,如果您必须使用--with-apr=/usr/local/apr/lib
我在我的Redhat上安装了APR和APR-UTIL
APR位置:/ usr / local / apr
然后
APR-UTIL安装cmd:
如果你按照这个教程: http : //httpd.apache.org/docs/2.2/install.html
# cd srclib/apr # ./configure --prefix=/usr/local/apr-httpd/ # make # make install**
那么你应该去
# cd ../apr-util # ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/bin/apr-2-config