in reply to Re: @INC not providing path to modules
in thread @INC not providing path to modules

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.

  • Comment on Re^2: @INC not providing path to modules

Replies are listed 'Best First'.
Re^3: @INC not providing path to modules
by Corion (Patriarch) on Jun 23, 2016 at 11:25 UTC

    If you don't want to see that message, I recommend following the instructions in it:

    Configure local::lib in your existing shell to set PERL_MM_OPT etc.

    I think that local::lib has lots (and lots) of documentation on how to configure it properly for perlbrew etc.

      Thanks Corion, I think that is the route I will take.