apache 编译报错:undefined reference to `apr_array_clear'

本文介绍了在编译Apache过程中遇到的错误:模块http/.libs/libmod_http.a(byterange_filter.o)中出现未定义的引用到apr_array_clear。解决方法是在编译前先安装apr和apr-util,并确保在配置时使用了正确的参数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

apache 编译报错:

modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange':
byterange_filter.c:(.text+0x1201): undefined reference to `apr_array_clear'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/ytxt/src/httpd-2.2.23'
make: *** [all-recursive] Error 1


解决:

编译apache之前应该先安装apr和apr-util,

编译的时候

./configure --prefix=/usr/local/httpd --enable-mods-shared=most --with-included-apr

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值