Venerable monks,
Do forgive me for what seems a trivial issue but I am having problems
upgrading my installation of perl from 5.8.8 to 5.10.0 on my Ubuntu
7.10 system. I have followed the standard installation procedure as
follows:
% sh Configure -de
% make
% make test
% sudo make install
Now this seemed to work fine (admittedly after several attempts) so I
went on to test the new installation. I tried the following:
% which perl
/usr/local/bin/perl
% perl -v
This is perl, v5.10.0 built for i686-linux
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5 so
+urce
kit.
Complete documentation for Perl, including FAQ lists, should be found
on this system using "man perl" or "perldoc perl". If you have access
+ to
the Internet, point your browser at http://www.perl.org/, the Perl Hom
+e
Page.
% perl -e 'use feature qw(:5.10); say q(Hello World!);'
Hello World!
As you can see, that lot works as expected. However when I tried the
following:
% sudo perl -MCPAN -e 'shell'
Perl lib version (v5.8.8) doesn't match executable version (v5.10.0) a
+t /usr/lib/perl/5.8/Config.pm line 46.
Compilation failed in require at /usr/local/share/perl/5.8.8/CPAN.pm l
+ine 14.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/CPAN.
+pm line 14.
Compilation failed in require.
BEGIN failed--compilation aborted.
% perldoc perl
Perl lib version (v5.8.8) doesn't match executable version (v5.10.0) a
+t /usr/lib/perl/5.8/Config.pm line 46.
Compilation failed in require at /usr/share/perl/5.8/Pod/Perldoc.pm li
+ne 7.
BEGIN failed--compilation aborted at /usr/share/perl/5.8/Pod/Perldoc.p
+m line 7.
Compilation failed in require at /usr/local/bin/perldoc line 9.
BEGIN failed--compilation aborted at /usr/local/bin/perldoc line 9.
For some reason it is still checking the 5.8.8 version of Config.pm
=(
Is there something obvious I am missing? Is this the wrong place to be
asking this question? Any help would be much appreciated.
Thank you.
Smoothie, smoothie, hundre prosent naturlig!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.