When I try to run a script that uses Net::SFTP::Foreign, it generates an error. Can someone explain what the error means and/or what is a possible solution? Thanks.

password authentication not available, IO::Pty is not installed or fai +led to load: Can't locate loadable object for module IO::Tty in @INC +(@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread- +multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/li +b64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/ +vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x +86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib64/perl5/ +site_perl/5.8.8/x86_64-linux-thread-multi/IO/Tty.pm line 30 Compilation failed in require at /usr/lib64/perl5/site_perl/5.8.8/x86_ +64-linux-thread-multi/IO/Pty.pm line 7. BEGIN failed--compilation aborted at /usr/lib64/perl5/site_perl/5.8.8/ +x86_64-linux-thread-multi/IO/Pty.pm line 7. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Net/SF +TP/Foreign/Backend/Unix.pm line 240. at test.pl line 9

However, the module is listed as installed in CPAN. And the permissions on it is -rwxr-xr-x root root. I am running the script as myself, a non-root user.

Module id = IO::Tty DESCRIPTION provide an interface to TTYs and PTYs CPAN_USERID RGIERSIG (Roland Giersig <RGiersig@cpan.org>) CPAN_VERSION 1.10 CPAN_FILE T/TO/TODDR/IO-Tty-1.10.tar.gz DSLI_STATUS RdcO (released,developer,C,object-oriented) MANPAGE IO::Tty - Low-level allocate a pseudo-Tty, import con +stants. INST_FILE /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread- +multi/IO/Tty.pm INST_VERSION 1.10 Module id = IO::Pty CPAN_USERID TODDR (Todd Rinaldo <toddr@cpan.org>) CPAN_VERSION 1.10 CPAN_FILE T/TO/TODDR/IO-Tty-1.10.tar.gz MANPAGE IO::Pty - Pseudo TTY object class INST_FILE /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread- +multi/IO/Pty.pm INST_VERSION 1.10 Module id = Net::SFTP::Foreign CPAN_USERID SALVA (Salvador Fandino Garcia <salva@cpan.org>) CPAN_VERSION 1.73 CPAN_FILE S/SA/SALVA/Net-SFTP-Foreign-1.73.tar.gz MANPAGE Net::SFTP::Foreign - SSH File Transfer Protocol clien +t INST_FILE /usr/lib/perl5/site_perl/5.8.8/Net/SFTP/Foreign.pm INST_VERSION 1.73

In reply to Can't locate loadable object for module IO::Tty by rider754

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.