Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I am new to perl as well as the monastery. I am trying to load the Expect module and the accompaning IO modules. The installation went without a hitch but when I tried to run know working code I get; # ./extest.pl Can't locate IO/Pty.pm in @INC (@INC contains: /apps/perl/ lib/5.00503/sun4-solaris /apps/perl/lib/5.00503 /apps/perl/lib/site_perl/5.005/sun4-solaris /apps/perl/lib/site_perl/5.005 .) at /apps/perl/lib/ site_perl/5.005/Expect.pm line 19. BEGIN failed--compilation aborted at /apps/perl/lib/site_perl/5.005/Expect.pm line 19. BEGIN failed--compilation aborted at ./extest.pl line 2. # The Pty.pm module is loaded, all dirs and files are owned by root(I'm assuming this is ok). I reloaded all of the modules a second time thinking there may have been a problem with the install, but every thing seems to have install correctly. -Thanks, HELP

Replies are listed 'Best First'.
Re: jglass
by adamsj (Hermit) on Jan 12, 2001 at 19:05 UTC
    I had loads of problems with just this sort of thing earlier this year--here's the thread Installing Expect.pm and IO in which a lot of talent looked at my problem. I believe the consensus was that I (and you) might be one point revisions down from a distribution with a good IO::Pty and IO::Tty.

    Good luck--that project is back at my old job. I didn't get a chance to finish it, so I don't have a certain solution.

    By the way, a descriptive subject line might get more help.

Re: jglass
by bbfu (Curate) on Jan 12, 2001 at 13:03 UTC

    Are you sure you installed both Expect and IO::Pty? You also would want to make sure that all the modules have world-read access.

    I haven't tried installing Expect, so I can't give any other advice. Hope it helps. =/