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

I am using Net::SFTP::Foreign to transfer a file. When i run my program its showing cant locate IO/Pty.pm. I tried to install that module. In that its showing

Looking for _getpty()...... not found. Looking for getpt()........ FOUND. Looking for grantpt()...... FOUND. Looking for openpty()...... FOUND. Looking for ptsname()...... FOUND. Looking for ptsname_r().... FOUND. Looking for sigaction().... FOUND. Looking for strlcpy()...... not found. Looking for ttyname()...... FOUND. Looking for unlockpt()..... FOUND. Looking for libutil.h...... not found. Looking for pty.h.......... FOUND. Looking for sys/stropts.h.. not found. Looking for termio.h....... FOUND. Looking for termios.h...... FOUND. Looking for util.h......... not found.

some things are not found in my system. But its not a dependency modules. How can I install this module. i am using CentOS Linux release 7.0.1406 (Core) as a root user. Is there any other one to do SFTP??? Thanks for any information.

Replies are listed 'Best First'.
Re: Can't locate IO/Pty.pm in @INC
by Athanasius (Archbishop) on Sep 10, 2015 at 07:33 UTC

      Net::SFTP is working properly. Thanks a lot

Re: Cant locate IO/Pty.pm in @INC
by salva (Canon) on Sep 10, 2015 at 08:05 UTC
    IIRC, IO::Pty is available from the Centos repositories as a package. Just install it from there.
    A reply falls below the community's threshold of quality. You may see it by logging in.