I didn't realize Embperl could be installed with cpanm. I will try that next time. Thanks!
On Mon, Oct 25, 2021 at 11:20 AM Robby Desmond (RTD) <rob...@uchicago.edu> wrote: > Similarly, if you wish to use cpanm to build Embperl from within Ansible > on a Red Hat system, even if you install the Apache development package and > the mod_perl development package, you will still have to symlink the Apache > modules and binaries into the development tree and tell Embperl where to > find the Apache source (because that's the only way to reliably override > wherever it goes looking for the Apache modules and binaries). > > - name: Setup modules symlink to allow Embperl to build > file: > src: /{{ apache home }}/modules > dest: /usr/include/httpd/modules > state: link > owner: root > group: root > - name: Setup binary folder to allow Embperl to build > file: > path: /usr/include/httpd/bin/ > state: directory > owner: root > group: root > mode: 0770 > - name: Setup binary symlink to allow Embperl to build > file: > src: /{{ apache binary home }}/httpd > dest: /usr/include/httpd/bin/httpd > state: link > owner: root > group: root > - name: Build Embperl with cpanm and APACHE_SRC environment variable > shell: > cmd: "export APACHE_SRC='/usr/include/httpd/';cpanm --notest > Embperl;" > creates: "/usr/local/lib64/perl5/Embperl" > > perl 5.16 > RH 7 > Apache 2.4 > Embperl 2.5 > > Robby Desmond (él | he/him/his) > BiblioVault Operations - Systems Administration > University of Chicago Press > http://www.bibliovault.org/ > ph: 773-834-2387 > rob...@uchicago.edu > bv-h...@uchicago.edu > > > ------------------------------ > *De:* Jim Tappe <jta...@gmail.com> > *Enviado:* domingo, 24 de octubre de 2021 22:30 > *Para:* embperl@perl.apache.org <embperl@perl.apache.org> > *Asunto:* Apache 2.4 > > FYI and FWIW, when installing Embperl 2.5.0.4 from source with mod_perl > support, it seems to be necessary to install mod_perl-2.0.11 from source > i.e. perl Makefile.PL;make; make install. > > Mod_perl Makefile.PL creates the file BuildConfig.pm which Embperl > Makefile.PL expects when it checks to see if Mod_perl is installed. > > perl 5.16 > CentOS 7 > Apache 2.4 > Embperl 2.5.0.4 > > > perl >