in reply to adding modules from CPAN to "packaged" mod_perl2

I'm having some trouble understanding what it is you are trying to accomplish here. If you are looking to install mod_perl2 (I think it's safe enough to just call it mod_perl these days) on an O/S via a packager then why not just use the mod_perl package provided by the distributor? mod_perl is available in RPM for CentOS 6 and 7 and various Fedora releases. I would be very surprised if it were not also available as a DEB for Ubuntu. By using the distributor's versions you know that the various components (apache, perl, libapreq2, etc.) will all play nicely together.

If your question is more general than just mod_perl, perhaps you could explain in a bit more detail what you are trying to do and where precisely the problem lies. At the moment it sounds more like a packaging problem than a perl problem.

  • Comment on Re: adding modules from CPAN to "packaged" mod_perl2

Replies are listed 'Best First'.
Re^2: adding modules from CPAN to "packaged" mod_perl2
by glasswalk3r (Friar) on Dec 05, 2016 at 11:43 UTC

    Fair enough, I might edit the original post as well.

    In the case I have mod_perl2 already setup (with RPM, DEB, etc), imagine that I want to write a handler (connection, request) and for that I want to reuse code from CPAN.

    I would know to to install modules when I'm using the interpreter outside Apache (several methods to do that) but I'm not sure how to do it when I need to add those modules to the mod_perl2 @INC.

    Alceu Rodrigues de Freitas Junior
    ---------------------------------
    "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill

      It's the same procedure. If the module is available as a package, install it via yum/dnf/apt-get. If not, download it from CPAN and follow the installation instructions.