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

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

你可能感兴趣的:(apache,apr_array_clear)