|
Packit |
a89ea5 |
This is the Perl distribution File-Temp.
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
Installing File-Temp is straightforward.
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
## Installation with cpanm
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
If you have cpanm, you only need one line:
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
% cpanm File::Temp
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
If it does not have permission to install modules to the current perl, cpanm
|
|
Packit |
a89ea5 |
will automatically set up and install to a local::lib in your home directory.
|
|
Packit |
a89ea5 |
See the local::lib documentation (https://metacpan.org/pod/local::lib) for
|
|
Packit |
a89ea5 |
details on enabling it in your environment.
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
## Installing with the CPAN shell
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
Alternatively, if your CPAN shell is set up, you should just be able to do:
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
% cpan File::Temp
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
## Manual installation
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
As a last resort, you can manually install it. Download the tarball, untar it,
|
|
Packit |
a89ea5 |
then build it:
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
% perl Makefile.PL
|
|
Packit |
a89ea5 |
% make && make test
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
Then install it:
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
% make install
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
On Windows platforms, you should use `dmake` or `nmake`, instead of `make`.
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
If your perl is system-managed, you can create a local::lib in your home
|
|
Packit |
a89ea5 |
directory to install modules to. For details, see the local::lib documentation:
|
|
Packit |
a89ea5 |
https://metacpan.org/pod/local::lib
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
The prerequisites of this distribution will also have to be installed manually. The
|
|
Packit |
a89ea5 |
prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated
|
|
Packit |
a89ea5 |
by running the manual build process described above.
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
## Documentation
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
File-Temp documentation is available as POD.
|
|
Packit |
a89ea5 |
You can run `perldoc` from a shell to read the documentation:
|
|
Packit |
a89ea5 |
|
|
Packit |
a89ea5 |
% perldoc File::Temp
|
|
Packit |
a89ea5 |
For more information on installing Perl modules via CPAN, please see:
|
|
Packit |
a89ea5 |
https://www.cpan.org/modules/INSTALL.html
|