mod perl prob - ExtUtils/Embed.pm
Hi, I am runnign CentOS 6.2 and am attempting to compile mod_perl. However i am faced with this issue presented below. I have incoorporated the perl-libs & perl-ExtUtils packages including the following to list a few, but still no luck: Any help would be greatly appreciated. cheers, spyros perl-ExtUtils-CBuilder.x86_64 $ sudo make mod_perl making all mod_perl 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. Compiling freeswitch_perl.cpp... g++ -w -DMULTIPLICITY -DEMBED_PERL -I/home/ec2-user/src/freeswitch/libs/curl/include -I/home/ec2-user/src/freeswitch/src/include -I/home/ec2-user/src/freeswitch/src/include -I/home/ec2-user/src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o freeswitch_perl.o freeswitch_perl.cpp In file included from freeswitch_perl.cpp:2: freeswitch_perl.h:13:20: error: EXTERN.h: No such file or directory freeswitch_perl.h:14:18: error: perl.h: No such file or directory In file included from freeswitch_perl.cpp:2: freeswitch_perl.h:22: error: ISO C++ forbids declaration of âPerlInterpreterâ with no type freeswitch_perl.h:22: error: expected â;â before â*â token freeswitch_perl.h:23: error: ISO C++ forbids declaration of âPerlInterpreterâ with no type freeswitch_perl.h:23: error: expected â;â before â*â token freeswitch_perl.h:26: error: ISO C++ forbids declaration of âSVâ with no type freeswitch_perl.h:26: error: expected â;â before â*â token freeswitch_perl.h:39: error: âSVâ has not been declared freeswitch_perl.h:49: error: âPerlInterpreterâ has not been declared In file included from freeswitch_perl.cpp:3: mod_perl_extra.h:3: error: variable or field âmod_perl_conjure_eventâ declared void mod_perl_extra.h:3: error: âPerlInterpreterâ was not declared in this scope mod_perl_extra.h:3: error: âmy_perlâ was not declared in this scope mod_perl_extra.h:3: error: expected primary-expression before â*â token mod_perl_extra.h:3: error: âeventâ was not declared in this scope mod_perl_extra.h:3: error: expected primary-expression before âconstâ mod_perl_extra.h:4: error: variable or field âmod_perl_conjure_streamâ declared void mod_perl_extra.h:4: error: âPerlInterpreterâ was not declared in this scope mod_perl_extra.h:4: error: âmy_perlâ was not declared in this scope mod_perl_extra.h:4: error: expected primary-expression before â*â token mod_perl_extra.h:4: error: âstreamâ was not declared in this scope mod_perl_extra.h:4: error: expected primary-expression before âconstâ freeswitch_perl.cpp:5: error: âSTRLENâ does not name a type freeswitch_perl.cpp: In constructor âPERL::Session::Session()â: freeswitch_perl.cpp:13: error: âmy_perlâ was not declared in this scope freeswitch_perl.cpp: In constructor âPERL::Session::Session(char*, CoreSession*)â: freeswitch_perl.cpp:18: error: âmy_perlâ was not declared in this scope freeswitch_perl.cpp: In constructor âPERL::Session::Session(switch_core_session_t*)â: freeswitch_perl.cpp:34: error: âmy_perlâ was not declared in this scope freeswitch_perl.cpp: At global scope: freeswitch_perl.cpp:88: error: variable or field âsetPERLâ declared void freeswitch_perl.cpp:88: error: âPerlInterpreterâ was not declared in this scope freeswitch_perl.cpp:88: error: âpiâ was not declared in this scope freeswitch_perl.cpp:94: error: variable or field âsetMEâ declared void freeswitch_perl.cpp:94: error: âSVâ was not declared in this scope freeswitch_perl.cpp:94: error: âpâ was not declared in this scope make[4]: *** [freeswitch_perl.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [mod_perl-all] Error 1 make[1]: *** [mod_perl] Error 2 make: *** [mod_perl] Error 2
On 29-02-12 15:57, spyros papadopoulos wrote:
Hi, I am runnign CentOS 6.2 and am attempting to compile mod_perl. However i am faced with this issue presented below. I have incoorporated the perl-libs & perl-ExtUtils packages including the following to list a few, but still no luck: Any help would be greatly appreciated. cheers, spyros perl-ExtUtils-CBuilder.x86_64 $ sudo make mod_perl
making all mod_perl 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. Compiling freeswitch_perl.cpp... g++ -w -DMULTIPLICITY -DEMBED_PERL -I/home/ec2-user/src/freeswitch/libs/curl/include -I/home/ec2-user/src/freeswitch/src/include -I/home/ec2-user/src/freeswitch/src/include -I/home/ec2-user/src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o freeswitch_perl.o freeswitch_perl.cpp In file included from freeswitch_perl.cpp:2: freeswitch_perl.h:13:20: error: EXTERN.h: No such file or directory freeswitch_perl.h:14:18: error: perl.h: No such file or directory
Did you see these ^^^^ 2 messages? They tell you that you are missing a required RPM. Hint: try the following command if you still have no idea: yum provides "*/EXTERN.h" Regards, Patrick
Thank you. The problem was resolved by explicitly including the perl-ExtUtils-Embed package thanks again, spyros On Wed, Feb 29, 2012 at 8:35 PM, Patrick Lists < freeswitch-list@puzzled.xs4all.nl> wrote:
On 29-02-12 15:57, spyros papadopoulos wrote:
Hi, I am runnign CentOS 6.2 and am attempting to compile mod_perl. However i am faced with this issue presented below. I have incoorporated the perl-libs & perl-ExtUtils packages including the following to list a few, but still no luck: Any help would be greatly appreciated. cheers, spyros perl-ExtUtils-CBuilder.x86_64 $ sudo make mod_perl
making all mod_perl 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. Compiling freeswitch_perl.cpp... g++ -w -DMULTIPLICITY -DEMBED_PERL -I/home/ec2-user/src/freeswitch/libs/curl/include -I/home/ec2-user/src/freeswitch/src/include -I/home/ec2-user/src/freeswitch/src/include -I/home/ec2-user/src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o freeswitch_perl.o freeswitch_perl.cpp In file included from freeswitch_perl.cpp:2: freeswitch_perl.h:13:20: error: EXTERN.h: No such file or directory freeswitch_perl.h:14:18: error: perl.h: No such file or directory
Did you see these ^^^^ 2 messages? They tell you that you are missing a required RPM. Hint: try the following command if you still have no idea:
yum provides "*/EXTERN.h"
Regards, Patrick
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 29-02-12 20:21, spyros papadopoulos wrote:
Thank you. The problem was resolved by explicitly including the perl-ExtUtils-Embed package thanks again,
My pleasure but the output from the command I gave you basically tells you that you should install perl-devel since that seems to be missing: $ yum provides "*/EXTERN.h" Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile 4:perl-devel-5.10.1-119.el6_1.1.i686 : Header files for use in perl development Repo : base-local Matched from: Filename : /usr/lib/perl5/CORE/EXTERN.h But if including perl-ExtUtils-Embed works for you then good for you :) Regards, Patrick
participants (2)
-
Patrick Lists
-
spyros papadopoulos