gabriel rosenkoetter on 23 Mar 2004 14:44:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] screwed up perl


On Tue, Mar 23, 2004 at 08:17:42AM -0500, Arthur S. Alexion wrote:
> The machine I am currently using didn't seem to have cpan installed.

That's extremely unlikely, though I suppose it's possible. (Perl
would have thrown errors about asking to load the CPAN module in
response to your -MCPAN rather than running subroutines that are
definitely part of CPAN.)

What (Linux?) distribution is this?

Did you check the install media for Perl packages that were not
installed by default? (It's better to start there, since your
distribution may have done some localization, more than CPAN can,
since they know exactly what they're installing for you and where.)

> I wanted to install spamassassin which needed Digest::SHA1.

It doesn't seem to be your immediate problem, but note that Red Hat
8 and above install ISO-8859 locales that do NOT play nicely with
perl Makefile.PL calls. You will probably want to set LANG=C when
building Perl modules from source (which the CPAN module does for
you in the background). I noticed this when installing Digest::SHA1
(also for Mail::SpamAsassin) on Red Hat AS 3, but it's been true for
longer than that.

See:

  http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=87682

and the other bugs referenced therein.

(Even if you're not using Red Hat, this may still apply. There's
nothing wrong with LANG=C most of the time, as long as you speak
English, so unless you know you need something out of the ISO-8859
locales, it's probably safest to stick with it.)

> I went to the cpan.org 
> website to get the cpan module so that I could get Digest::SHA1 (and whatever 
> else I might need in the future).  I downloaded Bundle-Everything.tar.gz but 
> there were no install instructions.  Stupidly, I executed the included 
> update-bundle.pl (as a regular user, not root) and now cpan is on the system 
> but refuses to work.

You describe a lot of things there, but without some more specifics
about what you did and what your system said when you did it, it's
basically impossible for us to know what state your system is in
now based on that description.

> [arthur@rodney arthur]$ perl -MCPAN -e 'install Digest::SHA1'
> CPAN: Storable loaded ok
[...]
> /bin/gzip: invalid option -- C
> Warning: Your perl -MCPAN -e 'install 

CPAN is definitely misparsing the commandline that you gave it.

What happens when you do `perl -MCPAN -e shell`?

What version of Perl is this? (It would be helpful to see the full
output of `perl -V`.)

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgp5ZqgaLWUpD.pgp
Description: PGP signature