【问题标题】:New Padre on FedoraFedora 上的新教士
【发布时间】:2014-12-14 11:20:37
【问题描述】:

当我尝试使用 cpan(或 cpanm)安装 Padre 时...

bash-4.2$ sudo cpan Padre
...
CPAN.pm: Building P/PL/PLAVEN/Padre-1.00.tar.gz
Found locale    ru_RU.UTF-8
Found wxWidgets 2.8.12
Found Wx.pm     0.9921
Unparsable version '6,59' for prerequisite ExtUtils::MakeMaker at inc/Module/Install/Makefile.pm line 352.
Checking if your kit is complete...
Looks good
unexpected end of string while parsing JSON string, at character offset 281 (before "},"build_requires":{...") at /usr/local/share/perl5/CPAN/Meta/Converter.pm line 45.
at /usr/share/perl5/vendor_perl/ExtUtils/MM_Any.pm line 831.
ERROR from evaluation of /root/.local/share/.cpan/build/Padre-1.00-UsByhx/winxs/Makefile.PL: unexpected end of string while parsing JSON string, at character offset 78 (before "}") at /usr/local/share/perl5/CPAN/Meta/Converter.pm line 45.
Warning: No success on command[/usr/bin/perl Makefile.PL]
PLAVEN/Padre-1.00.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites

这个bug我们有好几年了。我找不到 JSON,这是导致此错误的原因。有人通过这个问题吗?

【问题讨论】:

    标签: perl cpan padre cpanm


    【解决方案1】:

    在 JSON::PP 的某些版本中存在已知问题,这会导致工具链进一步出现问题。

    尝试升级 JSON::PP。如果工具链问题阻止您以正常方式安装 JSON::PP,则从 CPAN 下载 latest version of the module,并手动替换系统上的 JSON/PP.pm 文件。

    【讨论】:

    • bash-4.2$ perl -e '使用 JSON::PP;打印 $JSON::PP::VERSION 。 “\n”' 2.27300 已升级。 -> 同样的问题):
    • 我想知道 CPAN 是否看到了正确版本的 JSON::PP(您的系统上可能有多个副本)。您可以尝试破解 CPAN::Meta::Converter 来执行 use Data::Dumper;warn Dumper(\%INC);,就在它无法查看从哪些路径加载了哪些模块的地方。
    【解决方案2】:

    Fedora 目前提供 Padre 0.90 作为预构建包。所以你可以安装它

    $ sudo yum install perl-Padre
    

    【讨论】:

    • perl-Padre-0.90-10.fc20.noarch 太旧了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-06
    • 1970-01-01
    • 2016-11-03
    • 2011-03-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多