How change pert5.18 to perl5.16?
Murray Eisenberg
murrayeisenberg at gmail.com
Sun Mar 30 14:43:42 PDT 2014
OK, I did the forced variant change for perl5:
% sudo port upgrade --enforce-variants perl5 -perl5_18 +perl5_16
And now:
$ which perl
/opt/local/bin/perl
$ perl --version
This is perl 5, version 16, subversion 1 (v5.16.1) built for darwin-thread-multi-2level
And I tried the procedure recommended on http://trac.macports.org/ticket/42582 to rebuild mod_perl2 first, with the desired perl version:
% sudo port -ns upgrade --force mod_perl2
---> Computing dependencies for mod_perl2
---> Building mod_perl2
Error: org.macports.build for port mod_perl2 returned: command execution failed
Please see the log file for port mod_perl2 for details:
I've posted the log as a new comment to trac.macports.org/ticket/42582.
How to proceed so that I can eventually get p5-libapreq2 installed along with mod_perl2??
(I do need to use at least version 5.16 of perl for my ultimate purpose.)
On Mar 30, 2014, at 5:22 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Sun, Mar 30, 2014 at 5:00 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> Because p5-libapreq2 won't build with perl5.18 -- see http://trac.macports.org/ticket/28831 -- and because perl5.18 is currently my default version of perl5, I need to try again but now with perl5.16. How?
>
> I tried first "sudo port select perl5 perl5.16" (and same thing with just "perl" instead of "perl5") but get error "The specified group 'perl5' does not exist."
>
> Perl doesn't currently use the port select mechanism; there are at the moment too many corner cases to deal with. To select the default perl, you need to change the variant of the perl5 port:
>
> sudo port upgrade --enforce-variants perl5 -perl5_18 +perl5_16
>
> This should not disrupt ports using a different perl version, since the other versions will still be installed afterward.
>
---
Murray Eisenberg murrayeisenberg at gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667 Mobile (413)-427-5334
More information about the macports-users
mailing list