Re: Newbie CPAN issue

[email protected] ((Andreas J. Koenig))
Newsgroups perl.cpan.discuss
Message-ID <[email protected]>
>>>>> On Thu, 23 Feb 2006 10:05:57 -0600, "Marc Suttle" <[email protected]> said:

  > Andreas,
  > 	Thanks for your quick response.

  > You mentioned:

 >> 1. How do I fix Cwd.pm error?

  > "Restore from backup or install from CPAN again."

  > I cannot get back into cpan:

  > "$ cpan
  > Can't locate Cwd.pm in @INC (@INC contains:
  > /usr/libdata/perl5/i386-openbsd/5.8.6
  > /usr/local/libdata/perl5/i386-openbsd/5.8.6 /usr/libdata/perl5
  > /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd
  > /usr/libdata/perl5/site_perl/i386-openbsd
  > /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl
  > /usr/local/lib/perl5/site_perl .) at /usr/libdata/perl5/CPAN.pm line 13.
  > BEGIN failed--compilation aborted at /usr/libdata/perl5/CPAN.pm line 13.
  > Compilation failed in require at /usr/bin/cpan line 119.
  > BEGIN failed--compilation aborted at /usr/bin/cpan line 119."

  > Is there anyway possible to get back into this?

Goto search.cpan.org, search for Cwd, download it, run

   perl Makefile.PL
   make
   make test
   make install

If there is no Makefile.PL but a Build.PL, install Module::Build and
read its manpage.

  > Also on an OpenBSD machine how would I go about reinstalling cpan
  > from scratch?

Pass

  > What modules should I never remove? Just cwd?

Remove a bit and wait what breaks:-)

More on the serious side: maybe you want to have a look at
Module::CoreList.


-- 
andreas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.