rag*_*lka 14 macos perl perl-module
我试图使用JS gettext库(http://jsgettext.berlios.de/)中的po2json解析器/转换器,但是当我尝试转换时,我收到此错误:
Can't locate JSON.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at ./po2json line 23.
BEGIN failed--compilation aborted at ./po2json line 23.
Run Code Online (Sandbox Code Playgroud)
据我所知,我错过了一个perl模块,即JSON.pm,我认为就是这个:http://cpansearch.perl.org/src/MAKAMAKA/JSON-2.53/lib/JSON.pm
现在,我如何在OSX上安装它?我正在使用Mountain Lion.
我试过cpan install JSON,但它不起作用,我收到以下错误:
Writing Makefile for JSON
MAKAMAKA/JSON-2.53.tar.gz
make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Run Code Online (Sandbox Code Playgroud)
小智 9
输出说make没有回归成功.可能是由于一些依赖性.尝试使用cpanm http://search.cpan.org/~miyagawa/App-cpanminus-1.5017/bin/cpanm,它真的很麻烦,并且很好地引导(不需要安装其他东西).
使用此安装:
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
| 归档时间: |
|
| 查看次数: |
36187 次 |
| 最近记录: |