>>>>> On Fri, 24 Jun 2011 23:53:07 -0700, nimectos <tt4g-x...@dea.spamcon.org> 
>>>>> said:

  > I looked at "perldoc CPAN" and other info, but I can't seem to
  > cleanly install CPAN packages offline.

  > I want to run CPAN normally to install a lot of Perl packages on
  > one machine (CentOS 5.6 x64 distro just installed, has Perl
  > 5.8.8), capture everything needed to an archive, then take that
  > archive to another identical fresh machine and install all the
  > Perl packages WITHOUT any network access.

  > I fooled with archiving/restoring /root/.cpan/sources, and also
  > with a bundle, with both methods cpan gave a lot of complaints
  > about lack of network access, and failed one way ("Can't call
  > method "color_cmd_tmps" on an undefined value at
  > /usr/lib/perl5/5.8.8/CPAN.pm line 3784.") or another (said
  > required package install-0.01 not present - how can this be when
  > original online install finished successfully?)

  > What's the best way to do this - whether with just CPAN, and/or
  > other methods?

The CPAN.pm manpage has this paragraph:

  =head2 Floppy, Zip, Offline Mode

  CPAN.pm works nicely without network access, too. If you maintain machines
  that are not networked at all, you should consider working with C<file:>
  URLs. You'll have to collect your modules somewhere first. So
  you might use CPAN.pm to put together all you need on a networked
  machine. Then copy the $CPAN::Config->{keep_source_where} (but not
  $CPAN::Config->{build_dir}) directory on a floppy. This floppy is kind
  of a personal CPAN. CPAN.pm on the non-networked machines works nicely
  with this floppy. See also below the paragraph about CD-ROM support.

Are you saying you did exactly that and it did not work? I would
consider that a bug. But I need you exact description how you followed
this description. It may be that you misuderstood the process so that
the description needs amending or that the process is broken in the
meantime and needs fixing.

Please let me know how it goes.

-- 
andreas

Reply via email to