Thread

Posted on Wed Apr 6 18:45:25 2005 by brad
How to force an install
Hi All, I was installing a module (Net::LDAP) and it got interrupted. Now when I try to install it ( cpanp i Net::LDAP ) it says it's already installed although I can't use it because my perl script says its not there. I tried to uninstall and re-install. Still no go. How do I "force" the installation? Thanks!
Direct Responses: 426 | 427 | 812 | Write a response
Posted on Sat May 7 07:24:03 2005 by drbean in response to 303
Re: How to force an install
I would find the directory where it was building the module, probably something like ~/.cpanplus/5.8.5/build/Net-LDAP-0.99, and run perl Makefile.PL, make, make test, sudo make install, by hand. CPAN has a way of forcing installs, but I couldn't find out how to do it in CPANPLUS.
Write a response
Posted on Sat May 7 07:24:20 2005 by drbean in response to 303
Re: How to force an install
I would find the directory where it was building the module, probably something like ~/.cpanplus/5.8.5/build/Net-LDAP-0.99, and run perl Makefile.PL, make, make test, sudo make install, by hand. CPAN has a way of forcing installs, but I couldn't find out how to do it in CPANPLUS.
Write a response
Posted on Sun Jul 31 07:58:26 2005 by hsquared in response to 303
Re: How to force an install
Don't know whether you still need this answer, but as far as I can tell, you have to reconfigure your CPANPLUS session, as in "CPAN Terminal> s reconfigure" and select y when it asks whether to force. Unless you are brave (and foolhearty), don't forget to switch back when you're done.
Direct Responses: 1506 | Write a response
Posted on Thu Dec 22 19:09:46 2005 by dami in response to 812
Re: How to force an install
Actually, instead of "s reconfigure" (which would overwrite the CPANPLUS configuration file), you can do :
s conf force 1
which enables forced installs just for the current session (not easy to guess from the doc, but it works...).
Write a response