我是Perl新手,我正在尝试通过运行以下命令来安装Net::SFTP模块
cpanm Net::SFTP我尝试了安装,5-10分钟后失败,并显示以下信息
! Configure failed for Math-GMP-2.06. See /Users/applemacbookpro/.cpanm/build.log for details.
! Bailing out the installation for Net-SSH-Perl-1.34. Retry with --prompt or --force.
! Bailing out the installation for Net-SFTP-0.10. Retry with --prompt or --force.
19 distributions installed但是,当我再次尝试安装时,我注意到以下消息:
Can't write to /opt/local/lib/perl5/site_perl/5.12.3 and /opt/local/bin: Installing modules to /Users/applemacbookpro/perl5那么,现在我在~/perl5目录中安装了一大堆模块-如果我使用sudo安装,并且我的perl模块位于两个单独的目录中,我会遇到问题吗?
发布于 2012-01-29 05:48:06
Perl根据@INC搜索模块,您可以使用perl -V查看。(这是一个大写的“V”。)如果您在两个位置安装了该模块,则在@INC中找到的第一个模块将是已加载的模块。
通常,Perl甚至不知道要在/Users/applemacbookpro/perl5中查找,所以它很可能找不到那里的模块。
如果您一开始在/Users/applemacbookpro/perl5中没有任何模块,请随意删除该目录。
https://stackoverflow.com/questions/9048148
复制相似问题