Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Missing module perl

by ridwan (Initiate)
on Aug 21, 2019 at 08:00 UTC ( #11104779=perlquestion: print w/replies, xml ) Need Help??

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

Hi Good Afternoon All.

I'm planning install perl in my office(development machine), but in development machine there's not connection internet. And installation stuck in missing module perl

So, I make a lokal vbox, in there, I make a repo cpan(internet connection).

and case is, how to connect the development to my repo. I've been use mini cpan mirror but doesn't work. Maybe my configure cpan is wrong.

I am tired of this problem. Anybody help me ?


Replies are listed 'Best First'.
Re: Missing module perl
by Corion (Pope) on Aug 21, 2019 at 08:06 UTC

    The ideal way to set up a local CPAN mirror is through CPAN::Mini. You then take this mirror on an USB stick (or however) to your internal machine.

    You can point cpanminus to your internal mirror using

    cpanm --mirror-only --mirror file://home/ridwan/cpan-mirror/ Whatever: +:Module

    For more information, see cpanm.

    If you tell us the exact command you run and the exact error message you get, maybe we can give you advice more geared towards your actual situation.

      I've been set up local mirror(vbox) like this :

      (Directory : /root/minicpanrc)

      local: /minicpanmirror

      remote: http://mirror.0x.sq/CPAN/

      exact_mirror: 1

        And how exactly does this fail for you? It is hard to diagnose your situation if you don't tell us what it is.

Re: Missing module perl
by Anonymous Monk on Aug 21, 2019 at 10:42 UTC
    a typical cpan module can be installed manually. so to fix this problem you may be able to get the module download files, copy them to the server, and install them by hand. each module comes in a tar.gz file for example, so that would be untarred and then read the README file in the directory created, which has the instructions for manual build and install of modules:
    INSTALLATION To install this module type the following: perl Makefile.PL make make test make install
    if you have a lot of modules to install you would prpbly want to write a script to do it

      too much depedency. and if i try running command like that result is false

        is your test machine the same as production? can you tar up a copy of the test machines module directory, ftp the tar file to the server, untar it. set the PERL5LIB environment variable to look in the module directory you just made.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11104779]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2020-01-19 06:57 GMT
Find Nodes?
    Voting Booth?