Module::Install::External(3pm)

Module::Install::External3pm

Specify dependencies on external non-perl things

Overview

"Module::Install::External" provides command that allow you to declaratively specify a dependency on a program or system that is not Perl.

The commands it provides are similar to those in Module::Install::Can, except that they implement an explicit dependency, in addition to just working out if the particular thing is available.

Commands

requires_xs

  requires_xs;

The "requires_xs" command explicitly specifies that a C compiler and the perl header files are required in order to build (at make-time) the distribution (specifically XS files).

It does not take any params, and aborts the Makefile.PL execution in a way that an automated installation or testing system will interpret as a "NA" ("not applicable to this platform") result.

This may be changed to an alternative abort result at a later time.

Returns true as a convenience.

requires_external_cc

  requires_external_cc;

The "requires_external_cc" command explicitly specifies that a C compiler is required in order to build (at make-time) the distribution.

It does not take any params, and aborts the Makefile.PL execution in a way that an automated installation or testing system will interpret as a "NA" ("not applicable to this platform") result.

This may be changed to an alternative abort result at a later time.

Returns true as a convenience.

requires_external_bin

  requires_external_bin 'cvs';

The "requires_external_bin" command takes the name of a system command or program, similar to the "can_run" command, except that "requires_external_bin" checks in a way that is a declarative explicit dependency.

The takes a single param of the command/program name, and aborts the "Makefile.PL" execution in a way that an automated installation or testing system will interpret as a "NA" ("not applicable to this platform") result.

Returns true as a convenience.

To do

Work out how to save the external dependency metadata, in agreement with the larger Perl community.

Implement the agreed external dependency metadata solution.

Releases

11 releases since Debian 4.0 (Etch); the text changed 9 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10–11
  8. 12
  9. 13
  10. Arch

Authors

Adam Kennedy <[email protected]>

From perl-module-install 1.21-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.