On Wed, 11 May 2005, Mary Burwell wrote:
> I get the error below when trying to update CPAN using perl -MCPAN -e
> 'install Bundle::CPAN'
>
> The bundle file ~cpan\Bundle\CPAN.pm may be a broken
> handlefile. It seems not to contain any bundle definition. Please
> check The file and if it is bogus, please delete it..
>
> So, how would I know if it's bogus?
You should *paste* your error messages, not re-type them.
* on Unix systems, "~" is a shortcut for "username's home directory",
such that "~" by itself is your own home folder and "~name" is the home
directory of the user account named "name". Therefore, you're implying
here that you have a distinct "cpan" user, which seems unusual.
* following that, "~.pm" could be interpreted as the ".pm" user
account, which is even more eccentric than "cpan". You could make a file
that was literally named "~.pm", but I have a hard time imagining why.
* on Unix, the directory separator is a forward-slash, while on Windows
it's a backslash (and on OSX it's Unix style forward-slashes to some
things and Mac OS style colon-delimters to other things, but nevermind
that). Therefore, you're describing a Unix-style home directory for the
cpan user and Windows style directories for everything else.
So this just makes no sense as you sent it.
I suspect that, typos & Outlook Express mail headers aside, you're
working on a Unix-y system. If that's the case, it may be easiest to
simply rework your CPAN.pm configuration. This should help:
$ mv ~/.cpan ~/.cpan.MOVED
$ sudo perl -MCPAN -e shell
This will cause CPAN to be reinitialized, leaving you with a
configuration that should be more sensible. From there, you can attempt
to reinstall the module you originally wanted:
cpan> install Bundle::CPAN
If anything goes wrong, please paste the exact message you get back in
an email to the list.
Thanks, and I hope this helps...
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>