我在 ubuntu 22.04 上使用 cpan 安装 XML::LibXML 时遇到问题。我已安装 libxml2 和 zlib1g。CPAN 报告它看到 libxml2:# 针对 libxml2 版本编译:21303# 正在运行
我在 ubuntu 22.04 上使用 cpan 安装 XML::LibXML 时遇到问题。我已安装 libxml2 和 zlib1g。CPAN 报告说它看到了 libxml2:
# Compiled against libxml2 version: 21303
# Running libxml2 version: 21303
所有软件包要求都已安装。(如果您需要查看版本号,我可以列出它们),但所有软件包都已存在)
有一些警告。一些测试失败。但安装本身失败:
Files=77, Tests=2546, 11 wallclock secs ( 0.62 usr 0.14 sys + 9.57 cusr 1.35 csys = 11.68 CPU)
Result: FAIL
Failed 4/77 test programs. 3/2546 subtests failed.
make: *** [Makefile:1327: test_dynamic] Error 255
SHLOMIF/XML-LibXML-2.0210.tar.gz
/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SHLOMIF/XML-LibXML-2.0210.tar.gz
我尝试的是:
cpan XML::LibXML
出现了几个关于某些被贬低的警告:
x86_64-linux-gnu-gcc -c -I/usr/local/lib/x86_64-linux-gnu/perl/5.34.0/auto/share/dist/Alien-Libxml2/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno
-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"2.0210\" -DXS_VERSION=\"2.0210\" -fPIC "-I/usr/lib/x86_64
-linux-gnu/perl/5.34/CORE" -DHAVE_UTF8 perl-libxml-sax.c
perl-libxml-sax.c: In function 'PmmSaxError':
perl-libxml-sax.c:1539:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifi
ers]
1539 | xmlErrorPtr last_err = xmlCtxtGetLastError( ctxt );
|
^~~~~~~~~~~~~~~~~~~
有些测试失败了:
t/19die_on_invalid_utf8_rt_58848.t .................
# Failed test 'Parser error.'
# at t/19die_on_invalid_utf8_rt_58848.t line 19.
# 'example/thedieline.rss:26: I/O error : Invalid bytes in character encoding
# .com%2fblog%2f2010%2f06%2fginja-d-%25c3%25b3bidos.html&t=Ginja+d%26%2339%3b+
# ^
# example/thedieline.rss:26: parser error : Entity 'ldquo' not defined
# log%2f2010%2f06%2fginja-d-%25c3%25b3bidos.html&t=Ginja+d%26%2339%3b+“
Test Summary Report
-------------------
t/02parse.t (Wstat: 256 Tests: 533 Failed: 1)
Failed test: 511
Non-zero exit status: 1
t/08findnodes.t (Wstat: 256 Tests: 45 Failed: 1)
Failed test: 14
Non-zero exit status: 1
t/19die_on_invalid_utf8_rt_58848.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/60error_prev_chain.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 1 tests but ran 0.
Files=77, Tests=2546, 11 wallclock secs ( 0.62 usr 0.14 sys + 9.57 cusr 1.35 csys = 11.68 CPU)
Result: FAIL
Failed 4/77 test programs. 3/2546 subtests failed.
make: *** [Makefile:1327: test_dynamic] Error 255
SHLOMIF/XML-LibXML-2.0210.tar.gz
/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SHLOMIF/XML-LibXML-2.0210.tar.gz
任何帮助表示感谢 - Dean Guenther
XML::LibXLM 无法安装在 ubuntu 22.04 上
下载声明:
本站所有软件和资料均为软件作者提供或网友推荐发布而来,仅供学习和研究使用,不得用于任何商业用途。如本站不慎侵犯你的版权请联系我,我将及时处理,并撤下相关内容!