Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rebuild/reinstall dependencies of an up to date CPAN module?

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?

like image 423
matthias krull Avatar asked Mar 23 '11 13:03

matthias krull


People also ask

How do I install CPAN modules in Strawberry Perl?

Run CPAN client from the Strawberry Perl or Strawberry Perl (64-bit), sub folder Tools, entry in the Start menu. Type install Module::Name there.

How do I uninstall a CPAN Module?

Type cpanm --uninstall Module::Name (note the " m ") to uninstall the module with cpanminus.

What is CPAN PM?

CPAN.pm is a Perl module which allows to query and install modules from CPAN sites. It supports interactive mode invoked with cpan. or perl -MCPAN -e shell. Querying modules.


2 Answers

Be forceful.

From cpan command-line application:

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

From CPAN shell:

cpan[1]> force install Module::With::Dependencies
like image 76
mob Avatar answered Sep 28 '22 23:09

mob


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.)

like image 43
Mark Leighton Fisher Avatar answered Sep 28 '22 22:09

Mark Leighton Fisher