安装httpd-2.4.26+apr-1.6.2+apr-util-1.6.0+pcre-8.41.tar.gz报错如下

run_service run_service 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
按照正常编译
apr
apr-util
pcre
都没有问题

执行./configure --prefix=/opt/apache/httpd-2.4.26 --with-apr=/opt/apache/httpd-2.4.26/srclib/apr --with-apr-util=/opt/apache/httpd-2.4.26/srclib/apr-util --with-pcre=/opt/apache/pcre
也没有报错

开始make后

输出如下:

Making all in support
make[1]: Entering directory `/opt/apache/httpd-2.4.26/support'
make[2]: Entering directory `/opt/apache/httpd-2.4.26/support'
/opt/apache/httpd-2.4.26/srclib/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o htpasswd htpasswd.lo passwd_common.lo /opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.la /opt/apache/httpd-2.4.26/srclib/apr/lib/libapr-1.la -lrt -lcrypt -lpthread -lcrypt
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ParserCreate'
[color=#FF0000]/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_GetErrorCode'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetUserData'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ErrorString'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetEntityDeclHandler'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ParserFree'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetElementHandler'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_StopParser'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_Parse'
/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetCharacterDataHandler'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/opt/apache/httpd-2.4.26/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/apache/httpd-2.4.26/support'
make: *** [all-recursive] Error 1
[/color]


最后这段,我上网查了下

也有看到有网友说是apr-util不再捆绑“expat”,建议使用1.5的
但是没有解决根源问题,到帖子里找找大神学习

...全文

相关推荐

评论 10
收藏 已收藏
分享
返回顶部