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

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.

Replies are listed 'Best First'.
Re^6: cpan error - module installation
by ic23oluk (Sexton) on Jul 28, 2017 at 16:12 UTC
    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?

      Glad that worked, can you post the contents of the cpanm log file for the failure, it's too hard to say what's wrong otherwise.

        cpanm (App::cpanminus) 1.7043 on perl 5.018002 built for darwin-thread +-multi-2level Work directory is /Users/my_name/.cpanm/work/1501257286.35074 You have make /usr/bin/make You have LWP 6.05 You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3 You have /usr/bin/unzip Searching ExtUtils::PkgConfig () on cpanmetadb ... --> Working on ExtUtils::PkgConfig Fetching http://www.cpan.org/authors/id/X/XA/XAOC/ExtUtils-PkgConfig-1 +.16.tar.gz -> OK Unpacking ExtUtils-PkgConfig-1.16.tar.gz Entering ExtUtils-PkgConfig-1.16 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.30) Configuring ExtUtils-PkgConfig-1.16 Running Makefile.PL *** *** ExtUtils::PkgConfig requires the pkg-config utility, but it doesn' +t *** seem to be in your PATH. Is it correctly installed? *** PATH=/Users/my_name/perl5/bin:/usr/local/bin:/usr/bin:/bin:/usr/s +bin:/sbin:/Library/TeX/texbin *** -> N/A -> FAIL Configure failed for ExtUtils-PkgConfig-1.16. See /Users/my_na +me/.cpanm/work/1501257286.35074/build.log for details.