Switching Perl Versions

Rodolfo Aramayo raramayo at gmail.com
Sun Jan 29 16:38:00 PST 2012


On Sun, Jan 29, 2012 at 14:27, Brandon Allbery <allbery.b at gmail.com> wrote:

> 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).
>

Now when I call, I get:
==========
> port installed perl*
The following ports are currently installed:
  perl5 @5.12.3_1+perl5_12 (active)
  perl5.12 @5.12.3_3+threads (active)

> perl --version

This is perl 5, version 12, subversion 3 (v5.12.3) built for
darwin-thread-multi-2level

Copyright 1987-2010, 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 source 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 Home Page.
==========

Given that I want Perl to be +threads should my command be:

sudo port -R upgrade perl5 +perl5_14+threads -perl5_12+threads??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120129/0e0058dc/attachment.html>


More information about the macports-users mailing list