Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: upgrade broke perl?

by tobias_hofer (Friar)
on Jan 30, 2013 at 19:51 UTC ( #1016146=note: print w/replies, xml ) Need Help??

in reply to upgrade broke perl?

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, 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
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


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016146]
Corion idly wonders about creating a series of HTTP requests. There seems to be no framework to generate a series of HTTP requests, like "try all these requests"
[Corion]: This is vaguely inspired by that list of "nasty" strings, which I'd like to replace among HTTP parameters, just to see whether the application crashes, but also for easy downloading of a list of URLs etc
[Corion]: Maybe I'll just conoct something using Algorithm::Permute to create an (OO) generator for such requests, or a simple function.
[Corion]: For testing I imagine one would want to test a random sampling of such "bad"/"unexpected" requests, while for downloading, one would want to generate them all in order, but not necessarily as a huge list

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-01-16 15:40 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.