How to install Log::Log4perl on Strawberry Perl Windows

I could not install the Log::Log4perl module successfully using Strawberry Perl on Windows 10.

cpan -f -i -T Log::Log4perl

I found this post on Perl Monks with some help.

Sure you can install it

cpan[2]> force notest Log::Log4perl

cpan -f -i -T Log::Log4perl

$ perldoc cpan |ack "[-][fiT]" -f
Force the specified action, when it normally would have failed.
Use option, -i is not optional for installing a module when you need to
% cpan -f -i Module::Foo
 
-i Install the specified modules.
-T Do not test modules. Simply install them.
# install modules ( sole -i is optional )
    cpan -i Netscape::Booksmarks Business::ISBN
# force install modules ( must use -i )
    cpan -fi CGI::Minimal URI
Japheth Cleaver added the bits to allow a forced install (-f).

 

Visit sunny St. George, Utah, USA

Get In Touch

We would love to hear from you.

Please enter your email address.
Please enter a valid email address.
Please enter a message.
Please check your message for any errors.
Your message has been sent successfully.
Sorry, an error occured sending your message.
* required