perl - Can't locate SOAP/Lite.pm in @INC -


i trying build ldv project following this instructions, , know nothing perl.

i getting following error while running test

ldv-task: normal: calling ldv-core. can't locate soap/lite.pm in @inc (@inc contains: /home/acsia/perl5/perlbrew/perls/perl-5.10.0/lib/5.10.0/x86_64-linux /home/acsia/perl5/perlbrew/perls/perl-5.10.0/lib/5.10.0 /home/acsia/perl5/perlbrew/perls/perl-5.10.0/lib/site_perl/5.10.0/x86_64-linux /home/acsia/perl5/perlbrew/perls/perl-5.10.0/lib/site_perl/5.10.0 .) @ /home/acsia/desktop/ldv/consol-tools/ldv-core/ldv-core line 7. begin failed--compilation aborted @ /home/acsia/desktop/ldv/consol-tools/ldv-core/ldv-core line 7. 

output of

perlbrew use 

is :edited:

currently using perl-5.22.0 

output of

locate soap/lite.pm 

is

/usr/local/lib/perl5/site_perl/5.22.0/soap/lite.pm 

output of

which perl 

is

/usr/local/bin/perl 

and ldv-core file starting default

#!/usr/bin/perl -w # $instrumnet = 'ldv-core';  use findbin; # prevent meaningless module warnings use instead of use. begin { $sig{'__warn__'} = sub{}; require soap::lite; soap::lite->import(); $sig{__warn__}='default'; } use posix ":sys_wait_h"; use xml::twig; use io::socket::inet; #use file::mimeinfo; use file::basename; use cwd qw(abs_path);  etc,... etc.... 

thanks time...

if ldv-core isn't yours, should install soap::lite using system's package manager. if it's yours, read on.


perlbrew plays path executing perl execute desired perl.

but script explicitly uses /usr/bin/perl, perl selected using perlbrew switch or perlbrew use irrelevant.

  1. stop overriding default install location, , stop looking shouldn't.

    unset perl_mm_opt unset perl_mb_opt unset perl5lib unset perllib  echo -ne 'o conf makepl_arg ""\no conf commit\n'   | cpan echo -ne 'o conf mbuildpl_arg ""\no conf commit\n' | cpan 

    the first 4 lines have temporary effect. should stop setting variables in login script make change permanent.

  2. install soap::lite in desired perl.

    perlbrew use perl-5.22.0    # or perl-5.10.0 or whatever cpan soap::lite 
  3. fix script's shebang.

    perl -i~ -pe'    next if $. != 1;    s/^#!.*//s;    $_ = "#!$^x\n$_"; ' ldv-core 

ps — don't need use findbin;.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -