Today I was installing a CPAN module on a server and it had a lots of dependency. And it was asking me every time to type “yes” to install those dependencies. Now for one or two dependency it’s ok but what if it has 40-50 dependencies like in my case. It’s very frustrating to wait and type yes for each dependency. On searching I found simple solution to set auto install all the dependency. You just have to set the prerequisites_policy to follow.
[bash]
root@servertechsupport# perl -MCPAN -e shell
cpan> o conf prerequisites_policy follow
cpan> o conf commit
cpan> install modulename
[/bash]
Leave a Reply