首页 > 代码库 > Apache启动报错 undefined symbol: apr_array_clear
Apache启动报错 undefined symbol: apr_array_clear
Apache服务启动报错
[root@localhost ]# service httpd start
httpd: Syntax error on line 162 of /etc/httpd.conf/httpd.conf: Cannot load modules/mod_dir.so into server: /usr/local/apache2/modules/mod_dir.so: undefined symbol: apr_array_clear
解决办法:将./configure 选项的--with-apr 替换成--with-included-apr 重新编译
如果报错:
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
解决办法:把apr和apr-util copy到http目录的srclib下 重新编译
cp -rp /usr/local/src/apr-1.4.6/ /usr/local/src/httpd-2.4.10/srclib/apr
cp -rp /usr/local/src/apr-util-1.5.1/ /usr/local/src/httpd-2.4.10/srclib/apr-util
之后再重新编译
ok 可以启动了
Apache启动报错 undefined symbol: apr_array_clear
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。