Hi perlfan
I was using perlbrew's cpanm installer which was installed within the /home/grunt103 directory and it should have been using perl-5.20.3 also installed within the /home/grunt103 directory. I was not surprised by the message as grunt103 would not have had permission to write to the directories outside of it's domain.
I have pasted the full message below in case there is something in there I have missed.
! Can't write to /usr/local/share/perl5 and /usr/local/bin: Installing modules to /home/grunt103/perl5
! To turn off this warning, you have to do one of the following:
! - run me as a root or with --sudo option (to install to /usr/local/share/perl5 and /usr/local/bin)
! - Configure local::lib in your existing shell to set PERL_MM_OPT etc.
! - Install local::lib by running the following commands
!
! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
I have copied Moose.pm to /home/grunt103/perl5 and the script can find Moose so I might uninstall all the modules and use local::lib to install them all into /home/grunt103/perl5
Thanks for your feedback.
|