Switching Perl Versions

Brandon Allbery allbery.b at gmail.com
Sun Jan 29 12:27:26 PST 2012


On Sun, Jan 29, 2012 at 15:12, Rodolfo Aramayo <raramayo at gmail.com> wrote:

> On Sun, Jan 29, 2012 at 11:49, Brandon Allbery <allbery.b at gmail.com>wrote:
>
>> On Sun, Jan 29, 2012 at 12:41, Rodolfo Aramayo <raramayo at gmail.com>wrote:
>>
>>> Can I just issue the command:
>>>
>>> sudo port install perl5 +perl5_14
>>>
>>> or
>>> sudo port -R upgrade perl5 +perl5_14
>>>
>>
>> The latter, with one modification:  you also need to disable the existing
>> variant, or it will try to satisfy both (and error out because they
>> conflict):
>>
>>     sudo port -R upgrade perl5 +perl5_14 -perl5_12
>>
>
> Regarding "you also need to disable the existing variant," I have to
> uninstall it? And if I do, do I need to "follow-dependents"?
>

No; the "-perl5_12" is what I meant, since otherwise it will try to build
"+perl5_12 +perl5_14" and the two conflict.

And does this command does upgrade the all the ports that were compiled for
> p5.12??
>

That's what the -R does, yes.  Although it may not catch *all* of them, as
some ports depend explicitly on perl5.12 instead of on perl5 --- nothing
can be done about these unless they have their own way to specify (and
sometimes they don't, because they simply aren;t compatible with other
versions).

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120129/9980d67f/attachment.html>


More information about the macports-users mailing list