BarMeister has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install Apache2::Cookie with cpanm. It fails and I can't even use --force to get it to work...what am I doing wrong?

This seems to be the issue but I cannot figure out how to fix it.... In file included from Apache2.xs:39: /root/.cpanm/work/1552445418.44572/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_p ostperl.h:22:10: fatal error: 'modperl_perl_unembed.h' file not found #include "modperl_perl_unembed.h"

I am on FreeBSD 12 and installed everything through ports.

Thanks!

Replies are listed 'Best First'.
Re: Can't install Apache2::Cookie
by thanos1983 (Parson) on Mar 12, 2019 at 22:57 UTC

    Hello BarMeister,

    On your FreeBSD node can you run:

    pkg search Apache2-Cookie

    I do not have an available node to experiment but according to How to install Perl modules on FreeBSD. The previous command should return with a module name. Then simply take the name and run:

    sudo pkg install p5-Apache2-Cookie-version number here

    You might need to adjust the names but through this process you can install all dependencies that might be blocking your installation.

    Give it a try and let us know if it worked for you.

    Update: I assume that you have installed Apache and also C/C++ compiler.

    BR / Thanos

    Seeking for Perl wisdom...on the process of learning...not there...yet!
Re: Can't install Apache2::Cookie
by bliako (Abbot) on Mar 13, 2019 at 10:04 UTC

    try installing mod_perl-devel. Though, I think it's best not to use cpan* but the system package manager to do module installation (as thanos1983 suggests) because it knows about pre-requisites outside Perl and will install/update them for you automatically.