It would appear that you have perl installed but not ExtUtils::Embed. Are you installing
perl modules via cpan or via packages from yum?
Ben Kaufman
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of AL RSM
Sent: Friday, October 22, 2021 1:20 PM
To: sr-users <sr-users(a)lists.kamailio.org>
Subject: [SR-Users] "EXTERN.h: No such file or directory" error when compiling
Kamailio 5.5 on Centos 7
Hi,
While trying to install Kamailio 5.5 on Centos 7 I am getting the following error. Perl is
already installed. I verified "EXTERN.h" does not exist on the VM.
# make include_modules="tm app_perl" cfg
# make prefix=/ all
....
....
Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
CC (gcc) [M app_perl.so] perlfunc.o
In file included from perlfunc.c:40:0:
app_perl_mod.h:37:20: fatal error: EXTERN.h: No such file or directory
#include <EXTERN.h>
^
compilation terminated.
make[2]: *** [perlfunc.o] Error 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/kamailio/src'
Your help would be much appreciated.
Thanks,
AL