如何在Mountain Lion上重新安装Perl内置的Mac OS X?
我4天前更新到Mountain Lion,然后意识到我的perl脚本不再起作用。所以我安装了ActivePerl 5.14(最新版本),因为我认为perl已被删除。安装ActivePerl之后,尽管我的程序仍然无法运行: Warning message: running command 'perl calc.pl' had status 2 Can't locate Excel/Writer/XLSX.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 test.pl line 3. BEGIN failed--compilation aborted at calc.pl line 3. 在终端中,当我键入perl -v时,表明它使用了新安装的ActivePerl。我使用sudo氏族->安装Excel :: Writer :: XLSX来安装缺少的模块。但是,它不是为ActivePerl 5.14而是为5.12安装的。 自己的Mac OS …