[Freeswitch-users] Installation Errors

Michael Jerris mike at jerris.com
Thu Apr 23 05:49:00 PDT 2009


You are still missing some devel dependencies for embedding perl.

Unfortunately they are not listed on this page:

http://wiki.freeswitch.org/wiki/Mod_perl

If anyone knows them or you can find them, please add them.  Search  
for the missing header files using your package system.

Mike

On Apr 23, 2009, at 5:56 AM, technologyinspired wrote:

> Hi Raul,
>
> Thanks for the reply. I have fixed that error but now have another  
> error. I have installed perl-CPAN and its dependencies installed. I  
> run this command:
>
> perl -V | grep -oP "usemultiplicity=[a-z]+ and got the o/p as:  
> usemultiplicity=define.
>
> Could you tell me how to fix this error?
>
> ...
> ...
> making all mod_perl
> Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/lib/ 
> perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/ 
> local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/ 
> lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386- 
> linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/ 
> vendor_perl /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/ 
> perl5/site_perl /usr/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.
> Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/lib/ 
> perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/ 
> local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/ 
> lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386- 
> linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/ 
> vendor_perl /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/ 
> perl5/site_perl /usr/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.
> Compiling freeswitch_perl.cpp...
> g++ -w -DMULTIPLICITY -DEMBED_PERL -I/usr/src/freeswitch-1.0.4pre4/ 
> src/include -I/usr/src/freeswitch-1.0.4pre4/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:24: error: ISO C++ forbids declaration of  
> ‘PerlInterpreter’ with no type
> freeswitch_perl.h:24: error: expected ‘;’ before ‘*’ token
> freeswitch_perl.h:25: error: ISO C++ forbids declaration of  
> ‘PerlInterpreter’ with no type
> freeswitch_perl.h:25: error: expected ‘;’ before ‘*’ token
> freeswitch_perl.h:28: error: ISO C++ forbids declaration of ‘SV’  
> with no type
> freeswitch_perl.h:28: error: expected ‘;’ before ‘*’ token
> freeswitch_perl.h:41: error: ‘SV’ has not been declared
> freeswitch_perl.h:51: error: ‘PerlInterpreter’ has not been declared
> In file included from freeswitch_perl.cpp:3:
> mod_perl_extra.h:5: error: variable or field  
> ‘mod_perl_conjure_event’ declared void
> mod_perl_extra.h:5: error: ‘PerlInterpreter’ was not declared in  
> this scope
> mod_perl_extra.h:5: error: ‘my_perl’ was not declared in this scope
> mod_perl_extra.h:5: error: expected primary-expression before ‘*’  
> token
> mod_perl_extra.h:5: error: ‘event’ was not declared in this scope
> mod_perl_extra.h:5: error: expected primary-expression before ‘const’
> mod_perl_extra.h:6: error: variable or field  
> ‘mod_perl_conjure_stream’ declared void
> mod_perl_extra.h:6: error: ‘PerlInterpreter’ was not declared in  
> this scope
> mod_perl_extra.h:6: error: ‘my_perl’ was not declared in this scope
> mod_perl_extra.h:6: error: expected primary-expression before ‘*’  
> token
> mod_perl_extra.h:6: error: ‘stream’ was not declared in this scope
> mod_perl_extra.h:6: 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[5]: *** [freeswitch_perl.o] Error 1
> make[4]: *** [all] Error 1
> make[3]: *** [mod_perl-all] Error 1
> make[2]: *** [all-recursive] Error 1
> Making all in build
>  +-------- FreeSWITCH Build Complete -----------+
>  + FreeSWITCH has been successfully built.      +
>  + Install by running:                          +
>  +                                              +
>  +               make install                   +
>  +----------------------------------------------+
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
>
>
> Regards,
> Vin
>
>
>
>
> Some modules require additional libraries to be present, such as
> mod_opal in your case. You will need to install ptlib and opal first,
> just follow the instructions in the wiki:
> http://wiki.freeswitch.org/wiki/Mod_opal
> If you don't require mod_opal, just disable it in modules.conf.
>
> Regards,
>
> Raul
>
>
> On Thu, 2009-04-23 at 10:05 +0530, technologyinspired wrote:
> > Hi, I am getting errors while installing FreeSwitch. I have enabled
> > almost all the packages (except: mod_snom, mod_ldap, mod_zap and few
> > others). Do I need to install dependencies or will FreeSwitch
> > automatically find from the internet? I have done the basic
> > dependencies installed like gcc, curses, unixODBC etc.
> >
> > Here is the part of the "make" process which generated error:
> >
> > ...
> > ...
> > making all mod_native_file
> > Compiling mod_native_file.c...
> > mkdir .libs
> > Compiling mod_native_file.c ...
> > Creating mod_native_file.so...
> >
> > making all mod_opal
> > Compiling mod_opal.cpp...
> > mkdir .libs
> > Compiling mod_opal.cpp ...
> > In file included from mod_opal.cpp:26:
> > mod_opal.h:66: error: expected class-name before '{' token
> > mod_opal.h:67: error: 'Comparison' does not name a type
> > mod_opal.h: In member function 'virtual PBoolean FSProcess::
> > InternalIsDescendant(const char*) const':
> > mod_opal.h:67: error: 'PLibraryProcess' has not been declared
> > mod_opal.h: In member function 'virtual const char*
> > FSProcess::GetClass(unsigned int) const':
> > mod_opal.h:67: error: 'PLibraryProcess' has not been declared
> > mod_opal.cpp: In constructor 'FSProcess::FSProcess()':
> > mod_opal.cpp:289: error: class 'FSProcess' does not have any field
> > named 'PLibraryProcess'
> > mod_opal.cpp:289: error: 'AlphaCode' was not declared in this scope
> > mod_opal.cpp: In member function 'virtual void
> > FSConnection::OnReleased()':
> > mod_opal.cpp:667: error: invalid initialization of reference of type
> > 'const H323Connection&' from expression of type
> > 'OpalConnection::CallEndReason'
> > /usr/include/opal/h323/h323pdu.h:479: error: in passing argument 1  
> of
> > 'Q931::CauseValues H323TranslateFromCallEndReason(const
> > H323Connection&, H225_ReleaseCompleteReason&)'
> > mod_opal.cpp: In member function 'switch_status_t
> > FSMediaStream::read_frame(switch_frame_t**, switch_io_flag_t)':
> > mod_opal.cpp:1265: error: 'class OpalMediaPatch' has no member named
> > 'OnPatchStart'
> > mod_opal.cpp: In member function 'switch_status_t
> > FSMediaStream::write_frame(const switch_frame_t*,  
> switch_io_flag_t)':
> > mod_opal.cpp:1370: error: 'class OpalMediaPatch' has no member named
> > 'OnPatchStart'
> > make[5]: *** [mod_opal.lo] Error 1
> > make[4]: *** [all] Error 1
> > make[3]: *** [mod_opal-all] Error 1
> > make[2]: *** [all-recursive] Error 1
> > Making all in build
> >  +-------- FreeSWITCH Build Complete -----------+
> >  + FreeSWITCH has been successfully built.      +
> >  + Install by running:                          +
> >  +                                              +
> >  +               make install                   +
> >  +----------------------------------------------+
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
> >
> >
> >
> > Regards,
> > Vin
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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/20090423/f9678604/attachment-0002.html 


More information about the FreeSWITCH-users mailing list