日期:2014-05-16  浏览次数:20527 次

在linuxAS6.0 64位下编译http-2.2.13下出现错误
执行./configure --prefix=/usr/local/apache22 --enable-module=so
或者执行:
./configure --prefix=/usr/web/apache --enable-so --enable-rewrite --enable-proxy --with-mpm=worker --with-expat=builtin
都提示错误:
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Applying apr-util hints file rules for x86_64-unknown-linux-gnu
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.
configure failed for srclib/apr-util

各位大虾有没有知道怎么回事的?

------解决方案--------------------
redhat6.0吧?没用过,正准备下个玩玩的
错误提示写的很清楚了啊,It must specify an install prefix, a build directory, or an apr-config file.你必须指定一个install文件夹,一个build文件夹,或者指定apr-config文件夹
你的命令里只有--prefix,加上build文件夹或者apr-config文件夹试试,具体命令你看看configure--help里
------解决方案--------------------
先创建这个文件夹试试/usr/local/apache22