1

Whenever I try installing a perl module on my system, it fails to install the dependencies. I had this working before, I'm not sure why it's not working on my fresh setup.

For example, I try to install Catalyst-Runtime-5.80032 (I downloaded from http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-Runtime-5.80032.tar.gz ).

Inside the directory, I type perl Makefile.PL. That comes back with

Warning: prerequisite B::Hooks::EndOfScope 0.08 not found.
Warning: prerequisite CGI::Simple::Cookie 1.109 not found.
Warning: prerequisite Class::C3::Adopt::NEXT 0.07 not found.
Warning: prerequisite Class::Data::Inheritable 0 not found.

along with other modules not found. Then I type make and all of the modules come back with errors.

*** Installing dependencies...
*** Installing Class::Data::Inheritable...
*** Could not find a version 0 or above for Class::Data::Inheritable; skipping.
*** Installing Test::Exception...
*** Could not find a version 0 or above for Test::Exception; skipping.
*** Installing namespace::autoclean...
*** Could not find a version 0.09 or above for namespace::autoclean; skipping.
*** Installing namespace::clean...
*** Could not find a version 0.13 or above for namespace::clean; skipping.
*** Installing B::Hooks::EndOfScope...
*** Could not find a version 0.08 or above for B::Hooks::EndOfScope; skipping.

and a whole bunch of others like that.

Any ideas why this is failing? I am behind a company firewall, but I have set up the http_proxy, ftp_proxy, and https_proxy environment variables in bash. I'm able to curl and wget from all these protocols.

Thanks.

mark
  • 801

1 Answers1

3

Instead of manual building, which doesn't download dependencies (you have to do that manually to), why not use the cpan utility?

# cpan Catalyst::Runtime

That will download the package, it's dependencies, do all the compilation, and even install it all for you.

Majenko
  • 32,964