uplift has asked for the wisdom of the Perl Monks concerning the following question:

I am new to Perl so please bear with me.

I have tried to use minicpan on a Linux machine with no access to internet. I did this by creating a repository on a windows machine with internet successfully using minicpan -l C:/MINICPAN/ -r http://mirror.optusnet.com.au/CPAN, and then copying C:/MINICPAN/ to the Linux box (/opt/perlLib/MINICPAN/).

The problem is, if I use cpanm --mirror file:///opt/perlLib/MINICPAN Net::SSH::Perl it just hangs.

If I use cpanm --mirror file:///opt/perlLib/MINICPAN -L /usr/lib/perl5/site_perl/5.8.8/ Net::SSH::Perl I get the following but it just hangs after that:
==> Found dependencies: ExtUtils::MakeMaker, ExtUtils::Install

If I use cpanm --mirror file:///opt/perlLib/MINICPAN Net::SSH::Perl --mirror-only I get:
Net::SSH::Perl is up to date. (1.36)

I am using v5.8.8 built for x86_64-linux-thread-multi

Is there an path issue that needs fixing? Is it a version problem (my windows box is using perl 5.18).

Any help/advice is appreciated.

Thank you
  • Comment on Installation of modules from cpan mirror not working

Replies are listed 'Best First'.
Re: Installation of modules from cpan mirror not working
by Anonymous Monk on Mar 07, 2014 at 08:32 UTC

    The problem is, if I use cpanm --mirror file:///opt/perlLib/MINICPAN Net::SSH::Perl it just hangs.

    Increase verbosity, get more info, maybe find out where cpanm hangs (and maybe even why)

    I am using v5.8.8 built for x86_64-linux-thread-multi

    good luck with that , maybe try only mirroring CP5.8.8AN: the Comprehensive Perl 5.8.8 Archive Network

    Also, update all MakeMaker/cpanminus... mods

    Is there an path issue that needs fixing?

    Maybe

    Is it a version problem (my windows box is using perl 5.18).

    Anything is possible, although its more likely the module version / Config (aka path) issue

      Thanks for the advice.