尝试使用curl安装Mojolicious时出现以下错误:
mkdir /home/vagrant/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Mojolicious: Permission denied at /usr/share/perl/5.14/ExtUtils/Install.pm line 494
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 13
-> FAIL Installing Mojolicious failed. See /home/vagrant/.cpanm/work/1406757030.29416/build.log for details. Retry with --force to force install it.
我正在运行的命令是:
sudo curl -L cpanmin.us | perl - Mojolicious
有没有正确的方法来解决这个问题?我之前已经为777制作了很多目录权限,因为我之前获得了其他目录的权限被拒绝错误(例如/ home / vagrant / perl5 / bin& / home / vagrant / perl5 / lib)确定这是否是继续解决此问题的正确方法。
请指教,谢谢
修改:
使用perlbrew更新到版本5.16后,尝试运行mojo generate lite_app myapp.pl
It looks like you don't have the Mojolicious framework installed.
Please visit http://mojolicio.us for detailed installation instructions.
我能够成功安装mojolicious 5.22发行版,不知道为什么我会收到此错误