Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Hello Joe,

IMHO it seems that the Perl includepath @INC contains mixed paths of both perl libraries. The old 5.10.1 and the new 5.14.2.
However, Perl is not able to resolve the dependency tho the module feature.pm, which must be located in some of the folders.
Depending on what version you will get by typing perl -v on the shell, I would give a try doing following things to get the do-release-upgradeworking.
Create a perl-file from which you will start the do-release-upgrade
i.e. UpdateMe.pl.
Depending on your perl version I would manipulate the @INC path accordingly.
In case of Version 5.10.1 :
We have to replace following paths in the @INC:
/usr/share/perl/5.14.2/etc/perl by /usr/share/perl/5.10.1/etc/perl
You can do this by simply manipulating the @INC. As the wrong entry is at the first place you can remove it by an shift operation and unshift the correct path.
Like this:

#adjusting the @INC shift(@INC); unshift(@INC,'/usr/share/perl/5.10.1/etc/perl'); #Call to your script qx(do-release-upgrade);

In case your are running the perl 5.14.2, you got to replace all the other paths pointing to version 5.10.1. For this I would recommend some reg-expressions.
Or to keep it simple you can redefine the @INC by
@INC = ('/usr/share/perl/5.14.2','/etc/perl /usr/local/lib/perl/5.14.1 +','/usr/local/share/perl/5.14.2','/usr/lib/perl5','/usr/share/perl5', +'/usr/lib/perl/5.14','/usr/share/perl/5.14','/usr/local/lib/site_perl +','/opt');
But first make sure that those folders exists at all.

However, I am not sure if a do-release-upgrade is the correct answer to this issue - I have some doubts.

I am no ubuntu expert, but it should be possible to reinstall perl as 'ubuntu package' or rpm or something like that.
I guess this approach would fit more this Issue.
In case that ubuntu install scripts are perl based you can use the approach above eitherway.


I hope this helps.. :-)

Best regards

Tobias

In reply to Re: upgrade broke perl? by tobias_hofer
in thread upgrade broke perl? by eppo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (7)
    As of 2014-12-21 02:44 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (101 votes), past polls