Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    150

    Default /bin/sh: GET: command not found

    Hi,
    After a hard disk failed and an OS and Cpanel reinstall I have a customer that has a problem with a script that now does not work, has anyone got any clues, I'm totaly lost on this one.

    URL: http://www.lextrend.com/inmodemo/dem...php?idpag=1001
    The page appears blank.
    He says that the problem is '/bin/sh: GET: command not found'

    Thanks.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Mar 2002
    Posts
    150

    Default

    Thanks Jonathan I will take a look.

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default

    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 ?

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    See my post two above. Download the LWP module from cpan.org and install it manually and select to install the GET binary.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    Nov 2003
    Posts
    332

    Default

    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
    --

  7. #7
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Quote Originally Posted by webstyler View Post
    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/...0.01_01.tar.gz
    tar -zxf LWP5emu-0.01_01.tar.gz
    cd LWP5emu-*
    perl Makefile.PL
    make
    make install
    That's it.

  8. #8
    Member
    Join Date
    Nov 2003
    Posts
    332

    Default

    root@xx [/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.
    --

  9. #9
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by webstyler View Post
    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
    Quote Originally Posted by webstyler View Post
    root@xx [/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

Similar Threads & Tags
Similar threads

  1. mail: command not found
    By celliott in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-30-2011, 03:48 PM
  2. bfd ... command not found
    By wookiee in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-27-2007, 07:13 PM
  3. /bin/sh: line 1: GET: command not found
    By XPerties in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-16-2005, 08:26 PM
  4. Cron Error /bin/sh: line 1: GET: command not found
    By rodstewart in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-11-2005, 05:24 AM
  5. cgi-bin not found from http
    By tiggerific in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 09-23-2004, 02:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube