GET: command not found

From WebHostingNeeds.com
Jump to: navigation, search

On running cronjob, i get following error

/bin/sh: GET: command not found

This is due to GET command not available on the server. To fix, install libwww

yum list|grep libwww
yum install perl-libwww-perl.noarch

After install you will see GET at /usr/bin folder.

[root@server26 ~]# which GET
/usr/bin/GET
[root@server26 ~]#

10 Sep 2008

I tried to install perl-libwww-perl on a centOS server. perl-libwww-perl was not available on yum.

So i installed with cpan

# cpan
CPAN: File::HomeDir loaded ok (v0.80)
Exiting subroutine via last at /usr/lib/perl5/5.8.8/CPAN.pm line 1450.
cpan> install Bundle::LWP
.....
.....
.....
cpan> exit
Lockfile removed.
# 

After install there was no GET command. Instead, there is "lwp-request" command, which is same as GET, you can create a sym link.

cp /usr/bin/lwp-request /usr/bin/GET

will also work.

http://search.cpan.org/dist/libwww-perl/

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox