Updating a perl module fwith cpan
Updating a perl module fwith cpan - Free Online
By default, perl CPAN will not install a module when a test fails.
In this case, I can use “force install” command as shown below to instruct cpan to install the module, despite the fact that some of the tests failed.On an ongoing basis, I’ll be answering some of the questions asked by TGS readers.If you have any questions, use the contact form to get in touch with me.The following question is from one of the regular readers of TGS.Question: I’m trying to install a perl module using CPAN, and it displays “make test had returned bad status, won’t install without force”. Answer: In the following example, when I was trying to install Net:: SSLeay module, it didn’t get installed, as some of the test failed.If the force install works, you’ll see “/usr/bin/make install — OK” as the last line in the output as shown below. You should really research and see what test cases failed, and only if you are still Ok to install the perl module with those failed test cases, you should use force install.
Please note that you can also install a perl module manually without using CPAN.
Typically tracks all that was done during installation, and will not perform the same activity when you try to do it again.
For example, if you’ve already done get, or make, or test command for a module, if you try to do it again, CPAN will not perform those. For example, if you use get command for a module that CPAN already has in it’s build directory, it won’t perform the get again as shown below.
fforce command is more forceful than force command.
fforce will do a force get to delete any data about this package from the local cpan cache, and start the get, make, test and install process from the beginning.
Most Perl modules are written in Perl, some use XS (they are written in C) so require a C compiler.