编译问题:找不到Apache头文件 - CentOS 6.x.

时间:2015-08-31 04:21:34

标签: apache apache-portable-runtime

我正在尝试在CentOS上构建libwurfl(https://github.com/filosganga/libwurfl)。我已经安装了所有依赖库,但是我遇到了运行configure for libwurfl的问题。我经常遇到Apache header未找到问题的问题。

如果我使用--with-apxs,如下所示,

./configure --with-apxs=/usr/sbin/apxs/

输出:

checking for apr.h... yes
checking httpd.h usability... no
checking httpd.h presence... no
checking for httpd.h... no
configure: error: Apache headers not found.

如果我添加--with-apache

./configure --with-apxs=/usr/sbin/apxs/ --with-apache=/usr/include/httpd/ 

输出:

checking for apxs... no
checking apr.h usability... no
checking apr.h presence... no
checking for apr.h... no
configure: error: Apache Portable Runtime headers not found.

我在上面提到的两个位置都看到了标题。

任何指针?

谢谢!

1 个答案:

答案 0 :(得分:0)

I compiled it on Ubuntu 14.04 after installing and configuring apr-1.5.2 and httpd 2.2.31. Then I compiled it in this way:./configure --with-apache='/usr/local/apache2'