XML::Parser 无法在一个全新的 64 位 Debian 机器上构建。发出后cpan XML::Parser
,cpan 失败,出现很多关于 Expat.c 和 Expat.xs 的错误:
[...]
Expat.xs:2182: error: ‘CallbackVector’ has no member named ‘skip_until’
Expat.c: In function ‘XS_XML__Parser__Expat_Do_External_Parse’:
Expat.c:2904: error: ‘XML_Parser’ undeclared (first use in this function)
Expat.c:2904: error: expected ‘;’ before ‘parser’
Expat.xs:2194: error: ‘parser’ undeclared (first use in this function)
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/XML-Parser-2.41-rpV6ok/Expat'
make: *** [subdirs] Error 2
TODDR/XML-Parser-2.41.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
输出开头的消息解释说构建需要expat-devel 。
Expat 必须在构建 XML::Parser 之前安装,我在标准库目录中找不到它。使用您的操作系统包管理器安装“expat-devel”包。请参阅“自述文件”。
但是expat-devel不在 Debian 存储库中。
是否有可能在不需要从源代码构建/安装 expat 的情况下克服这个问题?