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

O wise monks:

I recently wrote and uploaded to CPAN Net::SSH2, based on libSSH2. As part of the install process I'd like to be able to install libSSH2 (and perhaps OpenSSL, which libSSH2 depends on, although it's more likely to already be installed), either by downloading the latest version or using a fallback tarball included with the distribution if that fails. Right now I just check for the library and fail if it's missing; I didn't want to put complex library install code in Makefile.PL.

I was wondering if there was already a module that would do that; if not, I might write one. I've searched CPAN, of course; Module::Install looked somewhat likely (Fetch, AutoInstall) but was pretty short on details.

Some features I'm considering for this module:

So: is there something like that already out there, and, if not, would you consider writing it to be a worthy and useful undertaking?

Replies are listed 'Best First'.
Re: Standard library installer
by Aristotle (Chancellor) on Nov 06, 2005 at 00:54 UTC

    Look at the Alien::* modules.

    Makeshifts last the longest.

      Those look interesting, thanks. I'm thinking the general functionality that I want can be put into a new Alien::Library module and then Alien::OpenSSH and Alien::LibSSH2 can use it to detect/install the respective C libraries.