in reply to Struggling in installaion of any module in Perl which is installed using perlbrew

Did you complete the perlbrew setup as instructed?

marto@Shemp:~$ perlbrew init perlbrew root (~/perl5/perlbrew) is initialized. Append the following piece of code to the end of your ~/.profile and s +tart a new shell, perlbrew should be up and fully functional from there: source ~/perl5/perlbrew/etc/bashrc Simply run `perlbrew` for usage details. Happy brewing!

The two important steps here are to edit the profile and start a new shell. From past experience if you don't do this you may see unexpected things happening.

  • Comment on Re: Struggling in installaion of any module in Perl which is installed using perlbrew
  • Download Code

Replies are listed 'Best First'.
Re^2: Struggling in installaion of any module in Perl which is installed using perlbrew
by haukex (Archbishop) on Oct 29, 2018 at 10:04 UTC
    Can't write to /usr/local/share/perl/5.26.1 and /usr/local/bin
    Did you complete the perlbrew setup as instructed?

    That seems to be the likely explanation. phoenix007: In addition to adding source ~/perl5/perlbrew/etc/bashrc to your ~/.bashrc file and logging out and back in again, make sure you either perlbrew use perl-5.8.9 (for the current shell only), or perlbrew switch perl-5.8.9 (make it the default for this and all future shells; I wouldn't recommend this though because 5.8.9 is quite old).

      Thanks haukex. perlbrew use perl-5.8.9 served my purpose of installing module to 5.8.9

Re^2: Struggling in installaion of any module in Perl which is installed using perlbrew
by phoenix007 (Sexton) on Oct 29, 2018 at 13:21 UTC

    Thanks for help marto I have already done proper perlbrew setup