How do I tell CPAN to install all dependencies?
I tried setting these in cpan:
cpan> o conf prerequisites_policy follow
cpan> o co
The latest and greatest answer to this question is to use cpanm instead (also referred to as App::cpanminus or cpanminus)!
DESCRIPTION
cpanminus is a script to get, unpack, build and install modules from CPAN and does nothing else.
It's dependency free (can bootstrap itself), requires zero configuration, and stands alone. When running, it requires only 10MB of RAM.
To bootstrap install it:
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
or if you are using perlbrew simply
perlbrew install-cpanm
or from cpan itself:
cpan install App::cpanminus
From then on install modules by executing (as root if necessary)
cpanm Foo::Bar