Cpan: Unterschied zwischen den Versionen

Aus SchnallIchNet
Wechseln zu: Navigation, Suche
Zeile 54: Zeile 54:
 
current or newer perl version by: 'rpm -Uvh --force perl-VERSION.rpm' <br/>
 
current or newer perl version by: 'rpm -Uvh --force perl-VERSION.rpm' <br/>
 
this was not needed in my case...
 
this was not needed in my case...
 +
 +
 +
=== reftype ===
 +
 +
error:
 +
 +
Can't call method "reftype" on unblessed reference at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Safe.pm line 370.
 +
 +
can be fixed by replacing 'reftype' to 'ref' <br/>
 +
so edit: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Safe.pm line 370 <br/>
 +
and replace line 370:
 +
 +
my $reftype = $item && reftype $item
 +
 +
by:
 +
 +
my $reftype = $item && ref $item

Version vom 22. Januar 2013, 14:31 Uhr


upgrade all

perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
CPAN::Shell->install() installs a package, who would have expected it? ;-)
CPAN::Shell->r lists all packages which have updates...


misc

misc things...


XS Version of Scalar::Util

this shitting redhat-bug:
https://bugzilla.redhat.com/show_bug.cgi?id=375621
RH is not able to get rid of it....

the problem is when perl is updated by rpm-packages i get the following error when running
a perl-script opening an ssl-socket:

You requested that XML::Stream turn the socket into an SSL socket, but you 
don't have the correct version of IO::Socket::SSL v0.81. at 
/usr/lib/perl5/site_perl/5.8.8/XML/Stream/Node.pm line 549

then i try

cpan> install IO::Socket::SSL
[...]
You need the XS Version of Scalar::Util for dualvar() support at Makefile.PL line 57

so to get rid of the message you will have to do:

cpan> force install Scalar::Util
[...]
Writing /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/List/Util/.packlist
 /usr/bin/make install -j2 -- OK

after that is run ok, do:

cpan> force install IO::Socket::SSL
[...]
Writing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/IO/Socket/SSL/.packlist
Manifying blib/man3/IO::Socket::SSL.3pm
  /usr/bin/make install -j2 -- OK

in the bugreport above they tell you to 'force install Scalar::Util' and then install the
current or newer perl version by: 'rpm -Uvh --force perl-VERSION.rpm'
this was not needed in my case...


reftype

error:

Can't call method "reftype" on unblessed reference at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Safe.pm line 370.

can be fixed by replacing 'reftype' to 'ref'
so edit: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Safe.pm line 370
and replace line 370:

my $reftype = $item && reftype $item

by:

my $reftype = $item && ref $item