PDA

View Full Version : New to Mac: CPAN and Modules not installing correctly (something to do with make?)...


mcp
01-18-2004, 02:02 PM
Hi everyone.

For some reason I am having trouble installing CPAN and downloaded modules (this case was Date: : DayOfWeek).

My OS is version 10.2.8 and I have installed the developer tools that came with this version of the OS.

When installing CPAN I just go with the default configuration until I get to these:


Pathname where the public executables will reside? (~name ok)
[/usr/local/bin]
Pathname where the public executables will reside? (~name ok)
[/usr/local/bin]
Pathname where the add-on public executables should be installed? (~name ok)


Unforutnately /usr/local/bin doesn't exist and I can't create it. So it looks like it won't be just plug and play for me... ;-)

After going through some more default settings I get this prompt (which may not mean anything special):


*** WHOA THERE!!! ***
The recommended value for $d_setregid on this machine was "undef"!
Keep the recommended value? [y]
*** WHOA THERE!!! ***
The recommended value for $d_setreuid on this machine was "undef"!
Keep the recommended value? [y]
*** WHOA THERE!!! ***
The recommended value for $d_setrgid on this machine was "undef"!
Keep the recommended value? [y]
*** WHOA THERE!!! ***
The recommended value for $d_setruid on this machine was "undef"!
Keep the recommended value? [y]


I just go with the default. Is that okay?

Near the end of the installation when it is going through the make tests everything seems to go horribly wrong:


Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running make for K/KW/KWILLIAMS/File-Spec-0.87.tar.gz
Unwrapped into directory /Users/*********/.cpan/build/File-Spec-0.87
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for P/PE/PETDANCE/Test-Harness-2.40.tar.gz
Unwrapped into directory /Users/********/.cpan/build/Test-Harness-2.40

CPAN.pm: Going to build P/PE/PETDANCE/Test-Harness-2.40.tar.gz

-- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for S/SB/SBURKE/Test-1.24.tar.gz
Unwrapped into directory /Users/*********/.cpan/build/Test-1.24

CPAN.pm: Going to build S/SB/SBURKE/Test-1.24.tar.gz

-- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for M/MS/MSCHWERN/Test-Simple-0.47.tar.gz
Unwrapped into directory /Users/********/.cpan/build/Test-Simple-0.47
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for K/KW/KWILLIAMS/File-Spec-0.87.tar.gz
Unwrapped into directory /Users/********/.cpan/build/File-Spec-0.87
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for P/PE/PETDANCE/Test-Harness-2.40.tar.gz
Unwrapped into directory /Users/*******/.cpan/build/Test-Harness-2.40
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for M/MS/MSCHWERN/Test-Simple-0.47.tar.gz
Unwrapped into directory /Users/********/.cpan/build/Test-Simple-0.47
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for R/RB/RBOW/Date-Leapyear-1.71.tar.gz
Unwrapped into directory /Users/*********/.cpan/build/Date-Leapyear-1.71

CPAN.pm: Going to build R/RB/RBOW/Date-Leapyear-1.71.tar.gz

-- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for M/MS/MSCHWERN/Test-Simple-0.47.tar.gz
Unwrapped into directory /Users/*********/.cpan/build/Test-Simple-0.47
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for R/RB/RBOW/Date-DayOfWeek-1.22.tar.gz
Unwrapped into directory /Users/*********/.cpan/build/Date-DayOfWeek-1.22

CPAN.pm: Going to build R/RB/RBOW/Date-DayOfWeek-1.22.tar.gz

-- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status



This type of loop happens aroudn 4 or so times before it appears to just give up alltogether.

Any help would be greatly appreciated. If this is not enough information please feel free to ask for it.

Thanks!

mcp

hayne
01-18-2004, 02:24 PM
Why can't you create /usr/local/bin ?
(You would need to use 'sudo')

Why not use some other location if you don't want to create a /usr/local/bin folder?

I haven't seen the issue with $d_setregid etc before, so not sure what is wrong.

Maybe the make is failing merely because you don't have /usr/local/bin ?

mcp
01-18-2004, 03:23 PM
When I try to do "mkdir bin" in /usr/local it says permission denied.

Actually after poking around a bit more I found that /usr/bin is there. Is there any reason why I shouldn't just use this directory? It seems to have a lot of other stuff in it already...

Thanks for the help!

mcp

mervTormel
01-18-2004, 03:34 PM
your elements in /usr/bin might not survive apple updates, and you do yourself a disservice if you stomp something in there from the vendor distribution.

you need to create the local dir as privileged user root...

$ sudo mkdir /usr/local/bin

/usr/local is designed to survive vendor updates. it is your 'local' domain and is "hands off" to vendor tampering, guaranteeing you a stable repository. of course, you, yourself, can stomp it anytime.

mcp
01-19-2004, 08:01 PM
Ok, I was able to create /usr/bin and complete the first part of the process without issue, but I am still getting issues with the make stuff near the end.

I don't need to declare any environment values since make is in usr/bin and not usr/local/bin, right?

I'll be going through a few Mac OS X books I picked up from the library to see if I can get it working myself, but any additional comments would be greatly appreciated.

Thanks!

mcp

hayne
01-20-2004, 12:58 AM
Originally posted by mcp
Ok, I was able to create /usr/bin
I presume you meant "/usr/local/bin"
I am still getting issues with the make stuff near the end.

I don't need to declare any environment values since make is in usr/bin and not usr/local/bin, right?
The /usr/local/bin is the destination folder. The CPAN module knows where to look for standard executables like make.

This process is usually not so troublesome. Did you perhaps modify some system level things before?
Are you using the OS-X-installed version of Perl ?

mcp
01-20-2004, 01:16 AM
You are correct, I meant usr/local/bin.

I haven't really done anything to the install. Here is what I have installed since installing it:

* Turned on web sharing and windows sharing
* PHP
* MySQL
* Fetch (FTP program)
* Navicad (MySQL client)
* BBEdit
* Apple Developer Tools

I just ran the following and it only complained about not having all the required modules:

sudo perl Makefile.PL

I even ran without error and it just said the makefile was up to date:

sudo make Makefile

Is there any other way I can test make to see why CPAN keeps saying it is getting errors?

Should I just reinstall perl since I haven't done any modification to it?

Thanks for everyone's help.

mcp

hayne
01-20-2004, 01:35 AM
Originally posted by mcp
I just ran the following and it only complained about not having all the required modules:

sudo perl Makefile.PL
Show us what errors you got from the above.

I even ran without error and it just said the makefile was up to date:

sudo make Makefile I don't understand the "even ran without error" part of the above.

mcp
01-20-2004, 02:54 AM
Here is the first thing it tries to build (which I think it just the final parts of CPAN), but fails:


If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

-- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for G/GB/GBARR/libnet-1.17.tar.gz
Unwrapped into directory /Users/chrisbutler/.cpan/build/libnet-1.17

CPAN.pm: Going to build G/GB/GBARR/libnet-1.17.tar.gz

-- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for P/PE/PETDANCE/Test-Harness-2.40.tar.gz
Unwrapped into directory /Users/chrisbutler/.cpan/build/Test-Harness-2.40
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for K/KW/KWILLIAMS/File-Spec-0.87.tar.gz
Unwrapped into directory /Users/chrisbutler/.cpan/build/File-Spec-0.87
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for M/MS/MSCHWERN/Test-Simple-0.47.tar.gz
Unwrapped into directory /Users/chrisbutler/.cpan/build/Test-Simple-0.47
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for K/KA/KANE/Archive-Tar-1.08.tar.gz
Unwrapped into directory /Users/chrisbutler/.cpan/build/Archive-Tar-1.08


It tries to make the following without sucess as well:

CPAN.pm: Going to build K/KA/KANE/Archive-Tar-1.08.tar.gz
CPAN.pm: Going to build G/GA/GAAS/Digest-1.05.tar.gz
CPAN.pm: Going to build G/GA/GAAS/Digest-MD5-2.33.tar.gz
CPAN.pm: Going to build K/KW/KWILLIAMS/Cwd-2.15.tar.gz

After all this it attempts to actually get the module I wanted and find dependencies. After that it fails to make all of those. If you want all the messaging I can post it, but it seems like a bit of overkill since it basically follows the same pattern but for different modules.

It keeps saying that make had some type of problem with it and returned error codes. Is there a simple way to test make?

Thanks.

mcp

hayne
01-20-2004, 11:37 AM
Originally posted by mcp
Here is the first thing it tries to build (which I think it just the final parts of CPAN), but fails:

[CODE]
If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

-- NOT OK
Running make test
Oops, make had returned bad status
Is that the first output you get from the CPAN shell when you issue the 'install' command? That seems strange.

That message about "if you compile perl5 ..." seems strange. I don't recall seeing that. It is as if you are trying to compile Perl itself.
When you ask CPAN to install a module, it first installs all the modules that the desired module depends on. It should tell you which things those are.
You certainly don't want to recompile Perl.

Are you running CPAN by doing the following command?
sudo perl -MCPAN -e shell
That is the right command to use.


The error from 'make test' is a bit strange. You should check in the Makefile to see if you can see what line is doing that 'make test' and why it might be failing.

You could try doing the 'make test' yourself by going into the appropriate directory for the module you are trying to install and typing 'make test'.

It keeps saying that make had some type of problem with it and returned error codes. Is there a simple way to test make?

First off, check which version of 'make' you have:
% which make
/usr/bin/make

% make -version
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for powerpc-apple-darwin7.0

I don't think it likely you have something wrong with 'make'. It is more lilkely that your Makefile is wrong.

mcp
01-20-2004, 09:17 PM
Sorry if I wasn't clear. I use the command and see the following when starting CPAN:


% sudo perl -MCPAN -e shell
Password:

cpan shell -- CPAN exploration and modules installation (v1.52)
ReadLine support available (try ``install Bundle::CPAN'')


When I check the version of make I am using I get the following back:


GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for powerpc-apple-darwin6.0


Which looks to be correct since I have 10.2.8, right?

Here is what I get when I try to make the test file by entering the command in the directory of the module I want to install:


% make test
mkdir blib
mkdir blib/lib
mkdir blib/lib/Date
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Date
mkdir blib/arch/auto/Date/DayOfWeek
mkdir blib/lib/auto
mkdir blib/lib/auto/Date
mkdir blib/lib/auto/Date/DayOfWeek
mkdir blib/man3
cp lib/Date/DayOfWeek/.DS_Store blib/lib/Date/DayOfWeek/.DS_Store
cp lib/Date/Doomsday.pm blib/lib/Date/Doomsday.pm
cp lib/Date/.DS_Store blib/lib/Date/.DS_Store
cp lib/Date/DayOfWeek/Nails.pm blib/lib/Date/DayOfWeek/Nails.pm
cp lib/Date/DayOfWeek/Sneeze.pm blib/lib/Date/DayOfWeek/Sneeze.pm
cp lib/.DS_Store blib/lib/.DS_Store
cp lib/Date/DayOfWeek/Birthday.pm blib/lib/Date/DayOfWeek/Birthday.pm
cp lib/Date/DayOfWeek.pm blib/lib/Date/DayOfWeek.pm
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/00doomsday........Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl/darwin /Library/Perl /Library/Perl/darwin /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl . /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at t/00doomsday.t line 2.
BEGIN failed--compilation aborted at t/00doomsday.t line 2.
t/00doomsday........dubious
Test returned status 2 (wstat 512, 0x200)
t/01dayofweek.......Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl/darwin /Library/Perl /Library/Perl/darwin /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl . /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at t/01dayofweek.t line 1.
BEGIN failed--compilation aborted at t/01dayofweek.t line 1.
t/01dayofweek.......dubious
Test returned status 2 (wstat 512, 0x200)
t/02birthday........Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl/darwin /Library/Perl /Library/Perl/darwin /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl . /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at t/02birthday.t line 1.
BEGIN failed--compilation aborted at t/02birthday.t line 1.
t/02birthday........dubious
Test returned status 2 (wstat 512, 0x200)
FAILED--3 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2


It is saying it can't find Test/More.pm for some reason. When I searched for it nothing came up (probably the reason ;-)... is this something that I need to install or should it have been included with the Apple Developer tools?

Thanks for everyone's help on this! :-D

mcp

hayne
01-20-2004, 10:03 PM
It is saying it can't find Test/More.pm for some reason.
[...]
is this something that I need to install or should it have been included with the Apple Developer tools? On my Jaguar system , the file More.pm is in the folder /Library/Perl/Test/
But I think that means that I installed it via CPAN as I think all of the Apple-supplied modules get put into /System/Library/Perl/

You should try installing Test::More with CPAN.

mcp
01-21-2004, 11:25 AM
Here is what I did and I got bascially the same result:


% sudo perl -MCPAN -e shell
Password:

cpan shell -- CPAN exploration and modules installation (v1.52)
ReadLine support available (try ``install Bundle::CPAN'')

cpan> install Test::More

Please, install Net::FTP as soon as possible. CPAN.pm installs it for you
if you just type
install Bundle::libnet

Issuing "/usr/bin/ftp -n"
Connected to ftp.cpan.ddns.develooper.com.
220-
220-######################################################################
220-
220- Welcome to viaVerio's San Jose, CA, USA CPAN FTP server!
...bunch of FTP crap...
200 Type set to I
local: 02packages.details.txt.gz remote: 02packages.details.txt.gz
500 EPSV not understood
227 Entering Passive Mode (128,121,60,235,249,133).
150 Opening BINARY mode data connection for 02packages.details.txt.gz (265762 bytes)
226 Transfer complete.
265762 bytes received in 00:01 (146.85 KB/s)
221 Goodbye.
GOT /Users/chrisbutler/.cpan/sources/modules/02packages.details.txt.gz
Going to read /Users/chrisbutler/.cpan/sources/modules/02packages.details.txt.gz
Scanning cache /Users/chrisbutler/.cpan/build for sizes
Deleting from cache: /Users/chrisbutler/.cpan/build/File-Spec-0.87 (51.0>10.0 MB)
...deleting a bunch of stuff from cache...
Deleting from cache: /Users/chrisbutler/.cpan/build/perl-5.8.3 (48.3>10.0 MB)

There's a new CPAN.pm version (v1.76) available!
[Current version is v1.52]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...

Issuing "/usr/bin/ftp -n"
Connected to ftp.cpan.ddns.develooper.com.
220-
...more ftp stuff...
221 Goodbye.
GOT /Users/chrisbutler/.cpan/sources/modules/03modlist.data.gz
Going to read /Users/chrisbutler/.cpan/sources/modules/03modlist.data.gz
Running make for M/MS/MSCHWERN/Test-Simple-0.47.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

Test-Simple-0.47
...bunch of files...
Test-Simple-0.47/TODO

CPAN.pm: Going to build M/MS/MSCHWERN/Test-Simple-0.47.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Test::Harness 2.03 not found at /System/Library/Perl/ExtUtils/MakeMaker.pm line 340.
Writing Makefile for Test::Simple
---- Dependencies detected during [M/MS/MSCHWERN/Test-Simple-0.47.tar.gz] -----
File::Spec
Test::Harness
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running make for K/KW/KWILLIAMS/File-Spec-0.87.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

File-Spec-0.87
...bunch of files...
File-Spec-0.87/t/Spec.t

CPAN.pm: Going to build K/KW/KWILLIAMS/File-Spec-0.87.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Test::More failed to load: Can't locate Test/More.pm in @INC (@INC contains: /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at (eval 7) line 3.
Writing Makefile for File::Spec
---- Dependencies detected during [K/KW/KWILLIAMS/File-Spec-0.87.tar.gz] -----
File::Basename
Cwd
Test
Test::More
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running make for N/NW/NWCLARK/perl-5.8.3.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

perl-5.8.3
perl-5.8.3/apollo
perl-5.8.3/apollo/netinet
...lots of files here...
perl-5.8.3/XSUB.h
perl-5.8.3/xsutils.c

CPAN.pm: Going to build N/NW/NWCLARK/perl-5.8.3.tar.gz

As you can see abaove at this point it finds a problem with make.



Sources for perl5 found in "/Users/chrisbutler/.cpan/build/perl-5.8.3".

Beginning of configuration questions for perl5.

Checking echo to see how to suppress newlines...
...using -n.
The star should be here-->*

First let's make sure your kit is complete. Checking...
Looks good...

As you can see it thinks it needs to install/update perl5, but I already have perl 5.6.0 installed...?


Checking how to test for symbolic links...
Your builtin 'test -h' may be broken.
Trying external '/bin/test -h'.
You can test for symbolic links with '/bin/test -h'.


Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.

First time through, eh? I have some defaults handy for some systems
that need some extra help getting the Configure answers right:

3b1 dynix isc_2 opus sunos_4_1
aix dynixptx linux os2 super-ux
altos486 epix lynxos os390 svr4
amigaos esix4 machten os400 svr5
apollo fps machten_2 posix-bc ti1500
atheos freebsd mint powerux titanos
aux_3 genix mips qnx ultrix_4
beos gnu mpc rhapsody umips
bsdos greenhills mpeix sco unicos
convexos hpux ncr_tower sco_2_3_0 unicosmk
cxux i386 netbsd sco_2_3_1 unisysdynix
cygwin irix_4 newsos4 sco_2_3_2 utekv
darwin irix_5 next_3 sco_2_3_3 uts
dcosx irix_6 next_3_0 sco_2_3_4 uwin
dec_osf irix_6_0 next_4 solaris_2 vmesa
dgux irix_6_1 nonstopux stellar vos
dos_djgpp isc openbsd sunos_4_0

You may give one or more space-separated answers, or "none" if appropriate.
A well-behaved OS will have no hints, so answering "none" or just "Policy"
is a good thing. DO NOT give a wrong version or a wrong OS.

Which of these apply, if any? [darwin]

Configure uses the operating system name and version to set some defaults.
The default value is probably right if the name rings a bell. Otherwise,
since spelling matters for me, either accept the default or answer "none"
to leave it blank.

Operating system name? [darwin]

Operating system version? [6.8]

Now is starts to ask a whole bunch of configuration questions, that I have answered before.

After all this config stuff it tries to put together a Test: :More and all of its dependencies and recommended installs. All of them end pretty much like this:

Test::Harness likes to have Devel::CoreStack, but doesn't require it.
Checking if your kit is complete...
Looks good
Writing Makefile for Test::Harness
---- Dependencies detected during [P/PE/PETDANCE/Test-Harness-2.40.tar.gz] -----
File::Spec
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running make for K/KW/KWILLIAMS/File-Spec-0.87.tar.gz
Unwrapped into directory /Users/chrisbutler/.cpan/build/File-Spec-0.87
Has already been processed within this session
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
Running make for P/PE/PETDANCE/Test-Harness-2.40.tar.gz
Unwrapped into directory /Users/chrisbutler/.cpan/build/Test-Harness-2.40

Any additional help would be greatly appreciated. Thanks.

mcp

hayne
01-22-2004, 02:37 AM
You certainly do not want to install Perl 5.8 since it is not binary compatible with Perl 5.6 and hence will cause all sorts of problems.
It seems that the install of Perl 5.8 was unsuccessful - that is good and I hope it hasn't chnaged any of your OS X-suppled Perl 5.6.

I noticed that at one point, the CPAN module says that there is a more recent version of itself available and tells you how to install it so it upgrades itself. You should definitely try doing that CPAN upgrade.

I recall at once point (not sure with what OS or what version of Perl) that the CPAN module itself was fault and I had to install the newer (fixed) CPAN module manually - ie. by finding it on the CPAN mirror web site (start from perl.org) and untar-ing it, etc, following the instructions in the README. It may be that you need to so something similar to fix your CPAN but first try using the CPAN you have to upgrade itself - see the instructions it gave in part of what you have copied to this thread above.