I have ActivePerl 5.14.2 on my Windows machine. I have been trying to install the LWP cURL module. I have already installed the libcurl-dev library and GCC on my machine.
I also understand that LWP cURL has a dependency on the WWW-Curl-Easy module. So I installed that too. I installed all these through the command lines using the steps given in the Readme files. I ran the perl makefile.pl
command followed by a make
and a make install
. No errors were given out during the installation.
I am trying to execute this sample code to test my LWP cURL installation:
use LWP::Curl;
use strict;
use warnings;
my $lwpcurl = LWP::Curl->new();
my $content = $lwpcurl->get('http://search.cpan.org','http://www.cpan.org');
I am receiving the below error:
Can't locate loadable object for module WWW::Curl in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at C:/Perl64/site/lib/WWW/Curl.pm line 11. BEGIN failed--compilation aborted at C:/Perl64/site/lib/WWW/Curl.pm line 11. Compilation failed in require at C:/Perl64/site/lib/WWW/Curl/Easy.pm line 9. Compilation failed in require at C:/Perl64/site/lib/LWP/Curl.pm line 5. BEGIN failed--compilation aborted at C:/Perl64/site/lib/LWP/Curl.pm line 5. Compilation failed in require at D:\Varsha\Curl.pl line 1. BEGIN failed--compilation aborted at D:\Varsha\Curl.pl line 1.
Where am I going wrong?