Can't locate Expect.pm

Discussion in 'Perl Misc' started by Nene, Mar 2, 2011.

  1. Nene

    Nene Guest

    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.
    Nene, Mar 2, 2011
    #1
    1. Advertising

  2. 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
    RedGrittyBrick, Mar 3, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    770
    Jorgen Grahn
    Oct 7, 2005
  2. Deep_Feelings
    Replies:
    6
    Views:
    234
  3. Simon Strandgaard

    how to expect eof with expect+pty

    Simon Strandgaard, Dec 20, 2006, in forum: Ruby
    Replies:
    4
    Views:
    327
    Simon Strandgaard
    Dec 20, 2006
  4. Justin Wyllie
    Replies:
    5
    Views:
    229
    Peter Pan
    Jan 11, 2005
  5. Phil
    Replies:
    0
    Views:
    149
Loading...

Share This Page