Install Perl modules in Gentoo
This is a wiki page. Be bold and improve it!
If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.
From the command line, simply do:
$ cpan
cpan[1]> install <package-name>
Or directly:
$ cpan <package-name>
If you don't know the precise package name, try:
$ cpan /<package-name>/
# e.g.:
$ cpan /frenchrevolutionary/
If the package to install is like Module::Package, use double quotes like this:
$ cpan
cpan[1]> install "Module::Package"
Ebuild
See the note in Gentoo's Submitting ebuild:
The app-portage/g-cpan package provides a tool called g-cpan.pl which installs a given CPAN module on your Gentoo system using Portage, storing the necessary information (such as dependencies, provided files, etc.) in the Portage database, just like it would when you install an ebuild. It is therefore not needed (nor recommended) to submit CPAN ebuilds.
For more information on g-cpan.pl, please consult its man page: man g-cpan.pl
External resources
-
Official resources:
- Project:Perl/g-cpan generates and installs perl modules and bundles from CPAN "on-the-fly." .