in reply to Re^2: cpan error - module installation
in thread cpan error - module installation

You could use sudo to run the cpan command, but you may want to leave the system perl alone. Did you look at the second link:

curl -L http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib

"This will install either cpanminus and local::lib (and all other required modules) locally into $HOME/perl5 directory."

Follow the other config step which follows and you should be fine. If you look at local::lib it describes the boostrapping technique used.

Replies are listed 'Best First'.
Re^4: cpan error - module installation
by ic23oluk (Sexton) on Jul 28, 2017 at 15:09 UTC

      For clarity:

      dpetrov@vaio:~$ cpanm Catalyst Catalyst::Devel

      Here 'dpetrov' is the current logged in user and 'vaio' is the hostname of the system. '$' is the prompt symbol and '~' is the path to your users home directory in bash (e.g. /home/marto in my case).

      You don't type this in, it's simply for illustrative purposes. If you've followed the steps you should be able to install modules without issue, from your command line:

      cpanm Module::Name

      Substitute Module::Name for whatever you want to install.

        Thanks a lot, it finally works :) I tried to install ExtUtils-PkgConfig-1.16 but it failed at the configuring step. Is there a way to install it anyway?