How can I control the Perl version I want?

Jeremy Lavergne jeremy at lavergne.gotdns.org
Thu Jan 5 18:55:12 PST 2012


The big take aways here are:
* the perl5 port currently controls the perl symlink
* to specify a specific 5.xversionn the variants must be used
* variants are specified by +xxxx
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Rodolfo Aramayo <raramayo at gmail.com> wrote:

Thanks to All of you...
So issuing the command:

sudo port install perl5 +perl5_14

solved the issue

However I did uninstall all Perl versions first (--following-dependents) and start reinstalling Perl5 +perl5_14 and then install the other ports (just to make me feel better and to punish myself for my mistake...;)

Now when I issue, I get:

==

# which perl
/opt/local/bin/perl

==

# port installed perl5
The following ports are currently installed:
  perl5 @5.12.3_1+perl5_14 (active)

==

# ls -l /opt/local/bin/perl
lrwxr-xr-x 1 root admin 8 Jan  5 13:32 /opt/local/bin/perl -> perl5.14*

==

# perl --version

This is perl 5, version 14, subversion 1 (v5.14.1) built for darwin-thread-multi-2level

Copyright 1987-2011, 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.

==

Thanks again for your help

--R

On Thu, Jan 5, 2012 at 13:07, Arno Hautala <arno at alum.wpi.edu> wrote:

Wouldn't perl need to be installed as "perl5 +perl5_14" not "perl5 @5.14.1_2"?

The default is activated by the variant given to the perl5 pseudo port.

I think you'd only be able to run "perl5 @" if the specified version
had already been built, but was inactive.


On 2012-01-05, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Jan 5, 2012, at 12:52, Rodolfo Aramayo wrote:
>
>> Thanks but the problem is that the port:
>>
>> perl5 @5.12.3_1+perl5_12 (active)
>>
>> was installed by another port not by me...I requested:
>> perl5.14 @5.14.1_2
>
> No problem. Multiple perls can happily coexist.
>
>
>> So I did what you guys suggested and issued the command:
>>
>> port install perl5 perl5.14 @5.14.1_2+threads
>>
>> but  the "perl --version" port still is: "This is perl 5, version 12,
>> subversion 3 (v5.12.3) built for darwin-multi-2level"
>
> That should not be. /opt/local/bin/perl should now be a simlink to perl5.14.
> What does "ls -l /opt/local/bin/perl" and "port installed perl5" show? What
> does "which perl" show?
>
>
>> Should I uninstall ALL perls before issuing the command:
>>
>> port install perl5 perl5.14 @5.14.1_2+threads??
>
> No.
>
>

> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>


--
arno  s  hautala    /-|   arno at alum.wpi.edu

pgp b2c9d448


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120105/e5dd0591/attachment.html>


More information about the macports-users mailing list