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