Error: "Can't locate HTTP/Request.pm in @INC"
What is HTTP::Request?
The HTTP::Request module is part of the LWP (Library for WWW in Perl) package, which provides a way to send and receive HTTP requests in Perl.
For closely related "module not installed" errors, see DBD::mysql Perl Module Not Installed Fix, vqmod::bootup — PHP domdocument Extension Required, and Server Does Not Have ImageMagick or GD Installed.
How to Fix This Error
Check if LWP and HTTP::Request are Installed
Run the following command to check if LWP and HTTP::Request are installed:
perl -MHTTP::Request -e 'print "HTTP::Request is installed\n";'
- If installed, you'll see:
HTTP::Request is installed - If not installed, proceed to install the module.
Install LWP and HTTP::Request
Using CPAN (Comprehensive Perl Archive Network)
- Open terminal.
- Install the LWP module (which includes HTTP::Request):
cpan install LWP
Using CPANM (CPAN Minus) (If Installed)
- Install CPANM (if not already installed):
curl -L https://cpanmin.us | perl - App::cpanminus - Use CPANM to install LWP:
cpanm LWP


