[Freeswitch-users] compiling mod_perl fail help required.

Michael Collins msc at freeswitch.org
Wed Jan 11 05:58:16 MSK 2012


Looks like you don't have the Perl dev libraries installed.
-MC

On Sun, Jan 8, 2012 at 3:57 AM, Sherif Omran <sherifomran2000 at yahoo.com>wrote:

> 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.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120110/0a302cde/attachment-0001.html 


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