On 02/03/2011 21:21, Nene wrote:
>
> I'm trying to see if use Net::SSH::Expect; works.
>
> rod001001 rodperl # ./test.pl
> Can't locate Expect.pm in @INC (@INC contains: /home/xxxxxx/rodperl /
> etc/perl /usr/lib/perl5/site_perl/5.8.5/x86_64-linux /usr/lib/perl5/
> site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/
> 5.8.5/x86_64-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/
> vendor_perl /usr/lib/perl5/5.8.5/x86_64-linux /usr/lib/perl5/5.8.5 /
> usr/local/lib/site_perl .) at /home/xxxxxx/rodperl/Net/SSH/Expect.pm
Note this list of locations.
> line 10.
> BEGIN failed--compilation aborted at /home/xxxxxx/rodperl/Net/SSH/
> Expect.pm line 10.
> Compilation failed in require at ./test.pl line 4.
> BEGIN failed--compilation aborted at ./test.pl line 4.
>
> ####
> This is what test.pl looks like:
> #!/usr/bin/perl -w
>
> use lib "/home/xxxxxx/rodperl";
> use Net::SSH::Expect;
> ####
>
> My Expect.pm line 10 is:
> 1 package Net::SSH::Expect;
> 2 use 5.008000;
> 3 use warnings;
> 4 use strict;
> 5 use fields qw(
> 6 host user password port no_terminal escape_char
> ssh_option
> 7 raw_pty exp_internal exp_debug log_file log_stdout
> restart_timeout_upon_receive
> 8 timeout terminator expect debug next_line before match
> after binary
> 9 );
> 10 use Expect;
^^^^^^^^^^^
This other Expect.pm can't be found in the standard library locations
(nor in /home/xxxxxx/rodperl).
>
> ####
> Things I should tell you.
> I compiled all the required modules on a different box and copied over
> to another box that does not have a compiler. All the modules were
> built with 'perl Makefile.PL PREFIX=/home/xxxxxx/rodperl
>
> On the box I copied all the files to, has identical file directory
> structure: /home/xxxxxx/rodperl
>
You haven't installed Expect (I don't mean Net::SSH::Expect) in one of
the listed locations. If you install Expect this problem will go away.
--
RGB
|