First, make sure your system C<perl> is C<5.10> or greater, so that the L<CPANPLUS> toolchain is available.
$ perl -v
- This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-linux
- ...
+ This is perl 5, version 12, subversion 2 (v5.12.2)...
C<perl> C<5.12> is the current stable Perl version in Gentoo.
If you still have C<perl> C<5.8.x>, you can upgrade it by running the following commands as root :
Bootstrap L<CPANPLUS::Dist::Gentoo> using the bundled shell script C<g-cpanp> :
+ # perl Makefile.PL
+ # make
# PERL5LIB=blib/lib samples/g-cpanp CPANPLUS::Dist::Gentoo
Finally, emerge the C<CPANPLUS-Dist-Gentoo> ebuild you've just generated :