Can't locate loadable object for module ESL error
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-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
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@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-f... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ 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
participants (2)
-
ankitdoshi
-
Steven Ayre