How install p5-libapreq2 for perl 5.20?

Ryan Schmidt ryandesign at macports.org
Sun Sep 14 19:19:34 PDT 2014


> On Sep 14, 2014, at 9:43 AM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> 
> Can somebody tell me in simple terms how to go about installing p5.20-libapreq2?
> 
> I tried "sudo port install p5.20-libapreq2" but, as I already reported in a ticket, this gives during build the "usual" error:
> 
>   info:build Can't locate ModPerl/MM.pm in @INC (you may need to install the ModPerl::MM module)
> 
> [Currently I have  p5.18-libapreq2 @2.130.0_3 installed, but also errors (report in a ticket) if I try to upgrade it to latest version.]
> 
> When I filed the ticket, it was closed as being a duplicate of #42582: p5-libapreq2: fails to build for any perl version except the default one (Can't locate ModPerl/MM.pm).
> 
> Is there some resolution? 
> 
> Not being a macports developer or, for that matter, a perl developer -- just somebody who needs to use perl and perl modules within something else (WeBWorK) -- at this point I don't understand what to do.

We need to change the mod_perl2 port into a p5-mod_perl2 port that has subports for each perl version.

Until we do, getting ports that use mod_perl2's perl modules (like p5-libapreq2) to work with it is cumbersome.

The process should be:

* install perl5 with a variant that corresponds to the perl version you want to use
* forcibly rebuild mod_perl2 from source (i.e. "sudo port -ns upgrade --force mod_perl2") or if you have not yet installed mod_perl2, install it from source (i.e. "sudo port -s install mod_perl2")
* install the p5-libapreq2 subport for the perl version you want to use




More information about the macports-users mailing list