/bin/sh: GET: command not found

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
The GET command is part of the LWP perl module. You would need to install that manually using the distribution from cpan.org and select the options for GET during the installation. By default they're not installed when LWP is installed through /scripts/perlinstaller
 

jeroman8

Well-Known Member
Mar 14, 2003
410
0
166
Hi!

I also get command not found on GET
But I can run "lwp-request -m" instead.

But how do I fix it so that GET will work ?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
See my post two above. Download the LWP module from cpan.org and install it manually and select to install the GET binary.
 

webstyler

Well-Known Member
Nov 20, 2003
443
0
166
same error here

/bin/sh: GET: command not found

It's possible to fix this by installed lwp throught

WHM >> Main >> Software >> Install a Perl Module

?

Thanks
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
same error here

/bin/sh: GET: command not found

It's possible to fix this by installed lwp throught

WHM >> Main >> Software >> Install a Perl Module

?

Thanks
You have dug out an old post, however, as stated above, you need to install the module manually. Follow the below steps, if you have the SSH access to your server:

cd /usr/local/src
wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/LWP5emu-0.01_01.tar.gz
tar -zxf LWP5emu-0.01_01.tar.gz
cd LWP5emu-*
perl Makefile.PL
make
make install
That's it.
 

webstyler

Well-Known Member
Nov 20, 2003
443
0
166
[email protected] [/usr/local/src/LWP5emu-0.01_01]# perl Makefile.PL
Can't locate LWP/UA.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 2.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
same error here
/bin/sh: GET: command not found

It's possible to fix this by installed lwp throught
WHM >> Main >> Software >> Install a Perl Module
?

Thanks
[email protected] [/usr/local/src/LWP5emu-0.01_01]# perl Makefile.PL
Can't locate LWP/UA.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 2.
Please see the following post for a safe method to install the desired GET, POST, and HEAD commands from the LWP Perl module:
cPanel Forums - View Single Post - perl GET alias for LWP module