Problem installing Devel::REPL using cpanm
perlbrew

You will find installing a local copy of perl, separate from the one bundled with Mac OS X, will make your module installation easier.

Use perlbrew to install and manage a specific version of perl. This isolates your perl from OS X updates and changes which have caused multiple problems in the past:

curl -L http://install.perlbrew.pl | bash
perlbrew install perl-5.16.0
perlbrew switch perl-5.16.0


cpan minus

On your isolated copy, install cpan minus to reduce the memory cost of installing modules:

curl -L http://cpanmin.us | perl - App::cpanminus


Re-install Devel::REPL

With this done, try re-installing Devel::REPL using cpanm:

cpanm Devel::REPL


...or cpan:

perl -MCPAN -e 'install Devel::REPL'


You should find modules install with less problems and are no longer affected by system updates or changes in Apple's decisions towards perl on OS X.