weirdness setting default perl version
Bradley Giesbrecht
pixilla at macports.org
Thu Jun 27 11:37:25 PDT 2013
On Jun 27, 2013, at 11:13 AM, Puneet Kishor wrote:
>
> On Jun 27, 2013, at 11:04 AM, Bradley Giesbrecht <pixilla at macports.org> wrote:
>
>>
>> On Jun 27, 2013, at 10:51 AM, Puneet Kishor wrote:
>>
>>> $ which perl
>>> /opt/local/bin/perl
>>> $ perl -v
>>>
>>> This is perl 5, version 12, subversion 4 (v5.12.4) built for darwin-thread-multi-2level
>>> ..
>>>
>>> $ port installed perl5.14
>>> The following ports are currently installed:
>>> perl5.14 @5.14.2_1
>>> perl5.14 @5.14.2_2 (active)
>>>
>>> $ sudo port activate perl5.14 @5.14.2_2
>>> ---> Computing dependencies for perl5.14
>>> ---> Cleaning perl5.14
>>>
>>> $ which perl
>>> /opt/local/bin/perl
>>> $ perl -v
>>>
>>> This is perl 5, version 12, subversion 4 (v5.12.4) built for darwin-thread-multi-2level
>>>
>>> ..
>>>
>>> Now what can I do?
>>
>>
>> $ port provides /opt/local/bin/perl
>> $ port variants perl5
>> $ sudo port -n upgrade --enforce-variants perl5 -perl5_12 +perl5_14
>> $ perl -v
>>
>
>
> wow! that seemed complicated, but it did the job. Many thanks,
/opt.local/bin/perl is a convenience symlink installed by the perl5 port and perl5_12 is the default variant so you just have to tell perl5 you want the perl5_14 variant.
Regards,
Bradley Giesbrecht (pixilla)
More information about the macports-users
mailing list