You are not logged in.
I just installed perl 5.12 from testing.
See:
~ $ perl -e 'use DateTime;'
Can't locate DateTime.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
~ $ ls /usr/lib/perl5/site_perl/
5.10.1
~ $ ls /usr/lib/perl5/site_perl/5.10.1/
CatLog.pm DateTime DateTime.pm DateTimePP.pm DateTimePPExtra.pm Jamget.pm Jaminfo.pm Jamnew.pm Jamnext.pm auto
~ $
It seems I should copy 5.10.1 to 5.12 and create a symlink to 5.12.1 called 'current'? Will I break things if I do this? I'ma go read on perldoc.org.
Last edited by peets (2010-05-11 20:13:50)
Offline
please report on our bugtracker
Give what you have. To someone, it may be better than you dare to think.
Offline
Wait I'm dumb the packages I had in site_perl/5.10.1 were stuff I put there manually a long time ago. This is all my fault. Solution:
# mv -n /usr/lib/perl5/site_perl/5.10.1/DateTime* /usr/lib/perl5/vendor_perl ### see Perl Package Guidelines on wiki
# mkdir /usr/lib/perl5/site_perl/5.12.0
# ln -s !$ /usr/lib/perl5/site_perl/current
# mv /usr/lib/perl5/site_perl/5.10.1/* !$
I'll write a feature request for the "current" symlink to be created/updated on perl upgrade, or for "current" to be removed from @INC.
Offline
Testing packages > Testing subforum please.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Just a trivial nit-pick here... but you might be creating a future problem. It can be a bad idea, moving files from the site_perl directory to the vendor_perl directory. vendor_perl is reserved for packaged perl modules. If you install the perl-datetime package it will complain about already existing files.
Since DateTime is manually installed I'd recommend sticking to the site_perl directory for the destination. Then again you might never need to install the perl-datetime package and this could never crop up...
Offline
I installed perl-datetime through pacman a long time ago, when packaging policies were different maybe? I don't quite remember.
$ pacman -Q perl-datetime
perl-datetime 0.55-2
Maybe I should remove that and install it with cpanp.
Offline