16

I need to reinstall the dependencies of a CPAN module. Some dependencies which are usually installed are missing but the package itself is up to date to cpan.

So how can i still install the dependencies?

matthias krull
  • 4,389
  • 3
  • 34
  • 54

2 Answers2

25

Be forceful.

From cpan command-line application:

$ cpan -f -i Module::With::Dependencies

From CPAN shell:

cpan[1]> force install Module::With::Dependencies
mob
  • 117,087
  • 18
  • 149
  • 283
  • 7
    That only reinstalls the module itself but not the missing dependencies. Where does cpan track which module is installed? Does it track this information at all? – matthias krull Mar 23 '11 at 15:42
4

You might try installing App::cpanminus, then use its cpanm command-line tool to install the module and its dependencies (try cpanm --help to get a list of the options).

(I also just discovered App::pmuninstall, which helped with a nasty case of refusal to update all of the files for a module by letting me uninstall the module first before installing the up-to-date version.)

Mark Leighton Fisher
  • 5,609
  • 2
  • 18
  • 29