如何通过解决此错误来安装 YAML::PP perl 模块?

How to install YAML::PP perl module by resolving this error?

我在 Fedora 27 virtualbox 上尝试编译 Kdevelop 时不断收到此错误。 正如here中提到的,我尝试使用这一行kdesrc-build kdevelop

我收到了这样的回复:

kdesrc-build requires some minimal support to operate, including support from the Perl runtime that kdesrc-build is built upon.

Some mandatory Perl modules are missing, and kdesrc-build cannot operate
without them.  Please ensure these modules are installed and available to Perl:
one of (YAML::XS, YAML::PP, YAML::Syck)

所以我尝试使用 cpan YAML::PP 安装 我得到了这份测试总结报告:

t/32.cyclic-refs.t      (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=20, Tests=1198,  9 wallclock secs ( 0.29 usr  0.03 sys +  3.93 cusr  0.48 csys =  4.73 CPU)
Result: FAIL
Failed 1/20 test programs. 0/1198 subtests failed.
make: *** [Makefile:945: test_dynamic] Error 255
  TINITA/YAML-PP-0.006.tar.gz
one dependency not OK (Test::Warn); additionally test harness failed
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports TINITA/YAML-PP-0.006.tar.gz

This 是我得到的全部错误(由于字符限制我无法在此处上传)

您可以使用 dnf 安装一些 perl 模块。所以对于这个问题,你可以做 sudo dnf install perl-YAML-Syck(yaml::syck 是它所说的可以在上面工作的模块之一)。

或者,要完全避免这个问题,您可以只安装 kdevelop 而无需编译,如果需要,可以使用 sudo dnf install kdevelop