CPAN install issues
am 22.02.2007 00:48:36 von macavenger
I ma trying to install modules using the CPAN module, specifically
Net::Jabber. however, whenever I try running the install Net::Jabber
command, I get the following output:
cpan[1]> install Net::Jabber
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 21 Feb 2007 12:08:13 GMT
Running install for module Net::Jabber
Running make for R/RE/REATMON/Net-Jabber-2.0.tar.gz
CPAN: Digest::SHA loaded ok
Can't use string ("") as a HASH ref while "strict refs" in use at /usr/
libdata/perl5/CPAN.pm line 4297.
as far as I can tell, this means that it was not installed. I
downloaded and installed the newest CPAN perl module (v1.8802) but
that didn't help. What can I do to fix this? trying to track down the
dependancy tree by hand would be nearly impossible. Thanks!
Re: CPAN install issues
am 22.02.2007 04:26:29 von paduille.4060.mumia.w+nospam
On 02/21/2007 05:48 PM, macavenger@macosx.com wrote:
> I ma trying to install modules using the CPAN module, specifically
> Net::Jabber. however, whenever I try running the install Net::Jabber
> command, I get the following output:
>
> cpan[1]> install Net::Jabber
> CPAN: Storable loaded ok
> Going to read /root/.cpan/Metadata
> Database was generated on Wed, 21 Feb 2007 12:08:13 GMT
> Running install for module Net::Jabber
> Running make for R/RE/REATMON/Net-Jabber-2.0.tar.gz
> CPAN: Digest::SHA loaded ok
> Can't use string ("") as a HASH ref while "strict refs" in use at /usr/
> libdata/perl5/CPAN.pm line 4297.
>
To me this suggests that your CPAN installation isn't proper.
> as far as I can tell, this means that it was not installed. I
> downloaded and installed the newest CPAN perl module (v1.8802) but
> that didn't help. What can I do to fix this? trying to track down the
> dependancy tree by hand would be nearly impossible. Thanks!
>
Consider reinstalling CPAN. If your operating system comes with CPAN,
try to install that version.
--
Windows Vista and your freedom in conflict:
http://www.badvista.org/
Re: CPAN install issues
am 22.02.2007 18:17:10 von macavenger
On Feb 21, 6:26 pm, "Mumia W."
+nos...@earthlink.net> wrote:
> On 02/21/2007 05:48 PM, macaven...@macosx.com wrote:
>
> To me this suggests that your CPAN installation isn't proper.
Agreed.
>
> Consider reinstalling CPAN. If your operating system comes with CPAN,
> try to install that version.
I did. As mentioned in my original message, I downloaded an installed
CPAN v1.8802, but this didn't help any. My system is OpenBSD 4.0, and
it did come with the CPAN module (or at least I'm fairly certain it
did), but I don't know what version. It would seem that since I'm
still getting the same errors after a reinstall, that either a) the
reinstall didn't replace everything it should have, or b) something
else is at fault. Thanks for the response!
Israel Brewster
Re: CPAN install issues
am 22.02.2007 18:58:10 von Sherm Pendley
"macavenger@macosx.com" writes:
> On Feb 21, 6:26 pm, "Mumia W."
> +nos...@earthlink.net> wrote:
>> On 02/21/2007 05:48 PM, macaven...@macosx.com wrote:
>>
>> To me this suggests that your CPAN installation isn't proper.
>
> Agreed.
>>
>> Consider reinstalling CPAN. If your operating system comes with CPAN,
>> try to install that version.
>
> I did. As mentioned in my original message, I downloaded an installed
> CPAN v1.8802, but this didn't help any.
Have you tried re-running the configuration q&a? It's "o conf init" at
the CPAN prompt.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: CPAN install issues
am 22.02.2007 19:32:09 von macavenger
On Feb 22, 8:58 am, Sherm Pendley wrote:
> Have you tried re-running the configuration q&a? It's "o conf init" at
> the CPAN prompt.
>
Thanks for the suggestion. I just tried re-reinstalling, this time
also deleting the /root/.cpan folder for good measure, and ran "o conf
init". Now when I try to install, I get the following string of
errors:
install Net::Jabber
CPAN: Storable loaded ok
Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
ftp://cpan-sj.viaverio.com/pub/CPAN/authors/01mailrc.txt.gz
gzip: /root/.cpan/sources/authors/01mailrc.txt: unknown suffix:
ignored
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
ftp://cpan-sj.viaverio.com/pub/CPAN/modules/02packages.detai ls.txt.gz
gzip: /root/.cpan/sources/modules/02packages.details.txt: unknown
suffix: ignored
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz
does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz
does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Use of uninitialized value in string ne at /usr/libdata/perl5/CPAN.pm
line 3924, line 2056.
Can't use string ("CPAN::Index") as a HASH ref while "strict refs" in
use at /usr/libdata/perl5/CPAN.pm line 3765, line 2056.
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz
does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz
does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Use of uninitialized value in string ne at /usr/libdata/perl5/CPAN.pm
line 3924, line 2056.
Lockfile removed.
Can't use string ("CPAN::Index") as a HASH ref while "strict refs" in
use at /usr/libdata/perl5/CPAN.pm line 3765, line 2056.
It looks like the final error is the same, except that now instead of
the string it can't use being "", it's "CPAN::Index" Any other ideas?
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net
Re: CPAN install issues
am 22.02.2007 19:40:38 von Sherm Pendley
"macavenger@macosx.com" writes:
> On Feb 22, 8:58 am, Sherm Pendley wrote:
>> Have you tried re-running the configuration q&a? It's "o conf init" at
>> the CPAN prompt.
>>
>
> Thanks for the suggestion. I just tried re-reinstalling, this time
> also deleting the /root/.cpan folder for good measure, and ran "o conf
> init". Now when I try to install, I get the following string of
> errors:
>
> install Net::Jabber
> CPAN: Storable loaded ok
>
> Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
> ftp://cpan-sj.viaverio.com/pub/CPAN/authors/01mailrc.txt.gz
> gzip: /root/.cpan/sources/authors/01mailrc.txt: unknown suffix:
> ignored
> Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
>
> Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
> ftp://cpan-sj.viaverio.com/pub/CPAN/modules/02packages.detai ls.txt.gz
> gzip: /root/.cpan/sources/modules/02packages.details.txt: unknown
> suffix: ignored
> Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
> Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz
> does not contain a Line-Count header.
> Please check the validity of the index file by comparing it to more
> than one CPAN mirror. I'll continue but problems seem likely to
> happen.
Have you tried what it's suggesting here - i.e. a different CPAN mirror?
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: CPAN install issues
am 22.02.2007 21:14:29 von macavenger
On Feb 22, 9:40 am, Sherm Pendley wrote:
> Have you tried what it's suggesting here - i.e. a different CPAN mirror?
>
Several times with several different mirrors. Even tried a couple in
another country :) They all seem to give the same error, however
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net
Re: CPAN install issues
am 22.02.2007 21:35:22 von macavenger
On Feb 22, 9:40 am, Sherm Pendley wrote:
>
> Have you tried what it's suggesting here - i.e. a different CPAN mirror?
>
Ok, so I was able to work around the complaints by manually
downloading the .gz files, but at that point when I try running the
install I get the following:
cpan[1]> install Net::Jabber
CPAN: Storable loaded ok
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Thu, 22 Feb 2007 01:08:21 GMT
HTTP::Date not available
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module Net::Jabber
Running make for R/RE/REATMON/Net-Jabber-2.0.tar.gz
Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
ftp://ftp.forthnet.gr/pub/languages/perl/CPAN/authors/id/R/R E/REATMON/Net-Jabber-2.0.tar.gz
gzip: /root/.cpan/sources/authors/id/R/RE/REATMON/Net-Jabber-2.0.t ar:
unknown suffix: ignored
CPAN: Digest::SHA loaded ok
Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
ftp://ftp.forthnet.gr/pub/languages/perl/CPAN/authors/id/R/R E/REATMON/CHECKSUMS
Can't use string ("") as a HASH ref while "strict refs" in use at /usr/
libdata/perl5/CPAN.pm line 4297.
which puts me right back where I started - the first time the files
had already been downloaded, so it didn't need to go through the
download process again. Sigh.
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net
Re: CPAN install issues
am 22.02.2007 22:54:33 von macavenger
On Feb 22, 11:35 am, "macaven...@macosx.com"
wrote:
> On Feb 22, 9:40 am, Sherm Pendley wrote:
>
> > Have you tried what it's suggesting here - i.e. a different CPAN mirror?
>
It looks like the problem lies specifically with the download/
decompression routines. If I manually download the source files using
wget and decompress, the process work. Of course, I still have to
manually download each dependancy it comes up with, which could be
quite a few. perhaps there is some way to change what utility it uses
for download? Or is the issue perhaps only tangentially related?
>
> > sherm--
>
> > --
> > Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> > Cocoa programming in Perl:http://camelbones.sourceforge.net
Re: CPAN install issues
am 23.02.2007 01:38:05 von Sherm Pendley
"macavenger@macosx.com" writes:
> On Feb 22, 11:35 am, "macaven...@macosx.com"
> wrote:
>> On Feb 22, 9:40 am, Sherm Pendley wrote:
>>
>> > Have you tried what it's suggesting here - i.e. a different CPAN mirror?
>>
> It looks like the problem lies specifically with the download/
> decompression routines. If I manually download the source files using
> wget and decompress, the process work. Of course, I still have to
> manually download each dependancy it comes up with, which could be
> quite a few. perhaps there is some way to change what utility it uses
> for download? Or is the issue perhaps only tangentially related?
Does curl have a dot-file or environment variable that will tell it to auto-
magically uncompress those files for you? Those error messages look to me
like gunzip complaining that it's being asked to unzip a file that's not in
gzip format.
If wget works for you, you could just configure the CPAN shell to use that
instead of curl. In the CPAN shell:
o conf curl undef
o conf wget /path/to/wget
o conf commit
I'm not certain in what order CPAN checks for its downloaders; simply giving
it the path to wget may be enough, if it checks for that before curl.
Alternatively, download and install LWP manually - CPAN.pm checks for that
before any external utilities.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: CPAN install issues
am 23.02.2007 06:46:15 von paduille.4060.mumia.w+nospam
On 02/22/2007 03:54 PM, macavenger@macosx.com wrote:
> It looks like the problem lies specifically with the download/
> decompression routines. If I manually download the source files using
> wget and decompress, the process work. Of course, I still have to
> manually download each dependancy it comes up with, which could be
> quite a few. perhaps there is some way to change what utility it uses
> for download? Or is the issue perhaps only tangentially related?
Net::Jabber requires
Net::XMPP and
XML::Stream and
Authen::SASL and
Digest::SHA1
Probably many more modules are required, but I had to download those
when I did a test install of Net::Jabber under CPAN 1.7601
Obviously something is very wrong with your CPAN installation. If it
were me, I'd uninstall *both* versions of CPAN and reinstall OpenBSD
4.0's CPAN.
If you try that, and it works, I suggest keeping it. If not, uninstall
the operating system's CPAN and install CPAN 1.8802 and try that.
Good luck.
--
Windows Vista and your freedom in conflict:
http://www.regdeveloper.co.uk/2006/10/29/microsoft_vista_eul a_analysis/