[Freeswitch-users] compiling mod_perl fail help required.

Sherif Omran sherifomran2000 at yahoo.com
Sun Jan 8 14:57:35 MSK 2012


Hello

I am trying to compile mod-perl but i get the following, i would appreciate a help

best regards,
Sheirf Omran


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/usr/local/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/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
[root at sip freeswitch]#  perl -MExtUtils::Embed -e xsinit 
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120108/dbeb5eb1/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list