当我进入
cpan[1]> install HTML::Entities
在perl中,我得到了
All tests successful.
Files=48, Tests=451, 2 wallclock secs ( 0.21 usr 0.10 sys + 1.54 cusr 0.26 csys = 2.11 CPU)
Result: PASS
GAAS/HTML-Parser-3.72.tar.gz
/usr/bin/make test -- OK
Running make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/opt/local/lib/perl5/site_perl/5.16.3/darwin-thread-multi-2level/HTML'
mkdir /opt/local/lib/perl5/site_perl: Permission denied at /opt/local/lib/perl5/5.16.3/ExtUtils/Install.pm line 494.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1.
make: *** [pure_site_install] Error 13
GAAS/HTML-Parser-3.72.tar.gz
/usr/bin/make install -- NOT OK
Failed during this command:
PETDANCE/HTML-Tagset-3.20.tar.gz : install NO
GAAS/HTML-Parser-3.72.tar.gz : install NO
问题可能在于perl尝试安装到名为5.16.3的目录;我的perl版本是5.22.1。我正在使用mac和自制软件包管理器。为什么我不能在perl中使用make install
个模块?
答案 0 :(得分:0)
它表明用户无权创建文件;请使用root或使用--prefix
运行cpan