| 1 |
This is the Perl distribution Module-Build-Tiny. |
| 2 |
|
| 3 |
Installing Module-Build-Tiny is straightforward. |
| 4 |
|
| 5 |
## Installation with cpanm |
| 6 |
|
| 7 |
If you have cpanm, you only need one line: |
| 8 |
|
| 9 |
% cpanm Module::Build::Tiny |
| 10 |
|
| 11 |
If it does not have permission to install modules to the current perl, cpanm |
| 12 |
will automatically set up and install to a local::lib in your home directory. |
| 13 |
See the local::lib documentation (https://metacpan.org/pod/local::lib) for |
| 14 |
details on enabling it in your environment. |
| 15 |
|
| 16 |
## Installing with the CPAN shell |
| 17 |
|
| 18 |
Alternatively, if your CPAN shell is set up, you should just be able to do: |
| 19 |
|
| 20 |
% cpan Module::Build::Tiny |
| 21 |
|
| 22 |
## Manual installation |
| 23 |
|
| 24 |
As a last resort, you can manually install it. If you have not already |
| 25 |
downloaded the release tarball, you can find the download link on the module's |
| 26 |
MetaCPAN page: https://metacpan.org/pod/Module::Build::Tiny |
| 27 |
|
| 28 |
Untar the tarball, install configure prerequisites (see below), then build it: |
| 29 |
|
| 30 |
% perl Build.PL |
| 31 |
% ./Build && ./Build test |
| 32 |
|
| 33 |
Then install it: |
| 34 |
|
| 35 |
% ./Build install |
| 36 |
|
| 37 |
Or the more portable variation: |
| 38 |
|
| 39 |
% perl Build.PL |
| 40 |
% perl Build |
| 41 |
% perl Build test |
| 42 |
% perl Build install |
| 43 |
|
| 44 |
If your perl is system-managed, you can create a local::lib in your home |
| 45 |
directory to install modules to. For details, see the local::lib documentation: |
| 46 |
https://metacpan.org/pod/local::lib |
| 47 |
|
| 48 |
The prerequisites of this distribution will also have to be installed manually. The |
| 49 |
prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated |
| 50 |
by running the manual build process described above. |
| 51 |
|
| 52 |
## Configure Prerequisites |
| 53 |
|
| 54 |
This distribution requires other modules to be installed before this |
| 55 |
distribution's installer can be run. They can be found under the |
| 56 |
"configure_requires" key of META.yml or the |
| 57 |
"{prereqs}{configure}{requires}" key of META.json. |
| 58 |
|
| 59 |
## Other Prerequisites |
| 60 |
|
| 61 |
This distribution may require additional modules to be installed after running |
| 62 |
Build.PL. |
| 63 |
Look for prerequisites in the following phases: |
| 64 |
|
| 65 |
* to run ./Build, PHASE = build |
| 66 |
* to use the module code itself, PHASE = runtime |
| 67 |
* to run tests, PHASE = test |
| 68 |
|
| 69 |
They can all be found in the "PHASE_requires" key of MYMETA.yml or the |
| 70 |
"{prereqs}{PHASE}{requires}" key of MYMETA.json. |
| 71 |
|
| 72 |
## Documentation |
| 73 |
|
| 74 |
Module-Build-Tiny documentation is available as POD. |
| 75 |
You can run `perldoc` from a shell to read the documentation: |
| 76 |
|
| 77 |
% perldoc Module::Build::Tiny |
| 78 |
|
| 79 |
For more information on installing Perl modules via CPAN, please see: |
| 80 |
https://www.cpan.org/modules/INSTALL.html |