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

Attempts to install Net-SFTP fail due to missing dependency Net-SSH-Perl-2.12. CPAN only has Net-SSH-Perl-2.01 and 2.14. How do I get CPAN to attempt install of Net-SFTP using Net-SSH-Perl-2.14 so my Perl application will work?

Replies are listed 'Best First'.
Re: Net-SFTP dependency missing
by marto (Cardinal) on Dec 09, 2020 at 20:21 UTC
Re: Net-SFTP dependency missing
by Fletch (Bishop) on Dec 09, 2020 at 20:03 UTC

    Rather than relying on the dependency to do so go ahead and install Net::SSH::Perl first, then install Net::SFTP perhaps?

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: Net-SFTP dependency missing
by salva (Canon) on Dec 12, 2020 at 11:50 UTC
    Package dependency version requirements don't state a specific version but the minimum one supported.

    Actually it is very uncommon for a Perl package to require a specific version of a dependency. It is not even supported by the toolset.

    So, Net::SSH::Perl 2.14 should be ok.

    In any case, take a look too at Net::SFTP::Foreign (provides much better API) and Net::SFTP::Foreign::Compat (API compatible with Net::SFTP, but uses the ssh binary under the hood, instead of Net::SSH::Perl).

Re: Net-SFTP dependency missing
by perlfan (Parson) on Dec 11, 2020 at 19:07 UTC
    Even if you get it running, please contact the maintainer and ask him to load the latest version on CPAN.