Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Can't locate Expect.pm

Reply
Thread Tools

Can't locate Expect.pm

 
 
Nene
Guest
Posts: n/a
 
      03-02-2011

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
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;

####
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

Help please.

 
Reply With Quote
 
 
 
 
RedGrittyBrick
Guest
Posts: n/a
 
      03-03-2011
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
locate.exe Gopi MCSE 13 11-22-2005 02:16 PM
Trying to locate Firefox feature History Fan Firefox 5 05-30-2005 07:24 AM
Can't locate String::Approx.pm JVarsoke Perl 1 02-28-2004 07:17 AM
HTTP::Response error : "Can' t locate loadable object" Subodh Perl 0 01-07-2004 12:11 PM
how to locate & load 3rd party private assemblies at run time? Terry McKiernan ASP .Net 0 07-07-2003 04:24 AM



Advertisments