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?  Also on an OpenBSD
machine how would I go about reinstalling cpan from scratch?  What
modules should I never remove?  Just cwd?

Marc

-----Original Message-----
From: Andreas J. Koenig
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 21, 2006 10:30 PM
To: Marc Suttle
Cc: cpan-discuss@perl.org
Subject: Re: Newbie CPAN issue

>>>>> On Tue, 21 Feb 2006 15:11:02 -0600, "Marc Suttle"
<[EMAIL PROTECTED]> said:

  > Hello list,
  >     I recently was trying to mess around with CPAN and have seemed
  > to get myself into a bind.

  > [...]

  > As you can see I deleted the Cwd.pm module because I was trying to
  > remove all the modules I had added to get it back to the original
state.

  > So...a couple of questions:

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

Restore from backup or install from CPAN again.

  > 2. Why did removing the Cwd.pm module kill cpan?

Because it is a core module.

  > 3. Once Cwd.pm is installed as a module can you remove it?  How do I
  > remove all modules I have installed to get it back to original
state?

If you install Cwd from CPAN, it overwrites the Cwd from the core, so
you ust not remove it.

  > 4.  All I wanted to do was install two modules: Digest::SHA1 and
  > MIME::Base64 and it kept complaining about bad cheksums.  Then I
even
  > tried a cpan> install Bundle::CPAN and it returns:

  > "Distribution id = G/GB/GBARR/Bundle-libnet-1.00.tar.gz
  >     CPAN_USERID  GBARR (Graham Barr <[EMAIL PROTECTED]>)
  >     CONTAINSMODS
  >     MD5_STATUS
  >     localfile
  > /root/.cpan/sources/authors/id/G/GB/GBARR/Bundle-libnet-1.00.tar.gz

  > I'd recommend removing
  > /root/.cpan/sources/authors/id/G/GB/GBARR/Bundle-libnet-1.00.tar.gz.
Its
  > MD5
  > checksum is incorrect. Maybe you have configured your 'urllist' with
  > a bad URL. Please check this array with 'o conf urllist', and
  > retry."

This may or not be a bug in the vesion of CPAN.pm you're using, but
efore we can investigate this, you should bring your system back to a
correct state.

--
andreas

Reply via email to