summaryrefslogblamecommitdiff
path: root/posts/2009-07-07-cpan-and-auto-install.md
blob: 776c5880c41b0118b7b0d44d3886bca9ba96b3aa (plain) (tree)
1
2
3


                                                                                                                                                                                                                                                                                                                                                                    
When you install a module from the [CPAN](http://search.cpan.org), and this module requires other modules, the cpan shell will ask you if you want to install them. When you are installing [Catalyst](http://www.catalystframework.org/), it may take a while, and you may not want to spend your afternoon in front of the prompt answering "yes" every 5 seconds.

The solution is to set the environment variable **PERL\_MM\_USE\_DEFAULT**. Next time you want to install a big app: `PERL_MM_USE_DEFAULT=1 cpan Catalyst KiokuDB` and your done.