[Freeswitch-users] Can't locate loadable object for module ESL error

Steven Ayre steveayre at gmail.com
Tue Jan 7 14:54:07 MSK 2014


ESL.pm isn't installed in one of the standard @INC directories, so perl has
no idea where to find the module

You can either add /usr/src/freeswitch/libs/esl/perl to @INC, or install it
to a standard path:
$ cd /usr/src/freeswitch/libs/esl
$ make perlmod-install



On 3 January 2014 15:30, ankitdoshi <ankit_doshi2011 at yahoo.com> wrote:

> Hello friends,
>
> in my script i am try to load ESL.pm file from specific directory and its
> showing me below error. which is locate here
> *"/usr/src/freeswitch/libs/esl/perl/ESL.pm"*
>
> Code :
>  #!/usr/bin/perl
> use lib '/usr/src/freeswitch/libs/esl/perl/';
> use ESL;
> my $c= new ESL::ESLconnection("$localhost", "$port", "$password");
> my $e = $c->sendRecv("api originate
>
> {ignore_early_media=true,origination_caller_id_number=1234}sofia/gateway/mygateway/1234");
>
> cmd :
> perl call.pl
>
> Error :
>
> Can't locate loadable object for module ESL in @INC (@INC contains:
> /usr/src/freeswitch/libs/esl/perl/ /etc/perl /usr/local/lib/perl/5.14.2
> /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5
> /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at
> /usr/src/freeswitch/libs/esl/perl//ESL.pm line 11.
> Compilation failed in require at call.pl line 3.
> BEGIN failed--compilation aborted at call.pl line 3.
>
> Give me some ideas to solve this problem.
>
> Thanks in advance
>
>
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/Can-t-locate-loadable-object-for-module-ESL-error-tp7596037.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _________________________________________________________________________
> 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/20140107/ee00b703/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list