Questions tagged «perl»


2
如何在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 …

1
更改.cpan的所有权
我要回到Perl;几个月前,我必须安装新的硬盘驱动器,因此必须重新开始。当我尝试更新CPAN时,出现以下消息: 您的配置建议CPAN.pm应该使用/Users/lolajl/.cpan的工作目录。不幸的是,由于“权限被拒绝”,我们无法创建锁定文件/Users/lolajl/.cpan/.lock。 查看/ Users / lolajl目录,我看到的是: drwxr-xr-x 4 lolajl staff 136 Nov 27 2014 .config drwxr-xr-x 8 root staff 272 Jun 14 20:14 .cpan 当我尝试运行“ sudo chown root:lolajl .cpan”时,我得到: chown: lolajl: illegal group name 如何更正此问题,以便CPAN可以正常运行?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.