我正在努力安装日期一天:使用cpan(我使用的是os x)。我总是收到这条消息
Warning: prerequisite Test::Inter 0 not found.
Bareword found where operator expected at ./Makefile.PL line 1, near "30 mtime"
(Missing operator before mtime?)
Number found where operator expected at ./Makefile.PL line 2, near "30"
(Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 2, near "30 atime"
(Missing operator before atime?)
Number found where operator expected at ./Makefile.PL line 3, near "30"
(Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 3, near "30 ctime"
(Missing operator before ctime?)
ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/Makefile.PL: ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/PaxHeaders.11917/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime"
Warning: No success on command[/opt/local/bin/perl5.12 Makefile.PL]
'YAML' not installed, will not store persistent state
SBECK/Date-Manip-6.36.tar.gz
/opt/local/bin/perl5.12 Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
SBECK/Date-Manip-6.36.tar.gz : writemakefile NO '/opt/local/bin/perl5.12 Makefile.PL' returned status 65280
有谁知道如何调试?
答案 0 :(得分:4)
我遇到了同样的问题,这些步骤对我有用:
> sudo cpan
cpan[1]> install CPAN
cpan[2]> exit
> sudo rm -rf ~/.cpan/build/SBECK-*
> sudo cpan Date::Manip
答案 1 :(得分:0)
首先安装YAML.pm和Test :: Iter.pm
但是。您可能不想在OS X上弄乱系统perl。
您可能需要认真考虑使用perlbrew来管理本地安装的perl,并使用自己的一组模块,与系统安装分开。