The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install previous version of pecl_http

Discussion in 'General Discussion' started by adlinkas, Apr 23, 2014.

  1. adlinkas

    adlinkas Member

    Joined:
    Apr 23, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Is it possible to install previous o pecl_http through cPanel->software->module installers??
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    No, but you can do it manually. Download it from PECL :: Package :: pecl_http, for example:

    Code:
    wget http://pecl.php.net/get/pecl_http-2.0.4.tgz
    tar -xvzf pecl_http-2.0.4.tgz
    cd pecl*
    phpize
    ./configure
    make
    make install
    
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The instructions in the previous post should work, but keep in mind that it's not really advised to use older versions of applications. Often times newer versions include bug resolutions or security patches.

    Thank you.
     
  4. adlinkas

    adlinkas Member

    Joined:
    Apr 23, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for your help, following the instructions that Vanessa posted I get the following error at ./configure step:

    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking for C compiler default output file name...
    configure: error: in `/home/XXXXXX/pecl_http-1.7.6':
    configure: error: C compiler cannot create executables

    How can I solve this??
     
  5. adlinkas

    adlinkas Member

    Joined:
    Apr 23, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Checking config.log i got this:

    cc: error trying to exec 'as': execvp: Permission denied
    configure:2800: $? = 1
    configure:2838: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:2844: error: in `/home/dashaxa/pecl_http-1.7.4':
    configure:2847: error: C compiler cannot create executables

    I'm kind of lost to solve it...
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Either that, or make sure you have compilers enabled for non-root users. You can configure this in WHM under the security section.
     
  8. adlinkas

    adlinkas Member

    Joined:
    Apr 23, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi sorry to bother again, now I'm installing the package logged as root, but now i get:

    checking for curl/curl.h... not found
    configure: error: could not find curl/curl.h

    I installed curl with this

    wget http://curl.haxx.se/download/curl-7.19.5.tar.gz
    tar -pxzf curl-7.16.0.tar.gz
    cd curl-7.16.0
    ./configure --with-ssl
    make
    make install

    But I still get the message that it could not find curl/curl.h
    what i'm missing?

    - - - Updated - - -

    Hi, I do have compiler enabled for non-root users but now i'd rather do it as root. But i get a new error:

    checking for curl/curl.h... not found
    configure: error: could not find curl/curl.h

    I installed curl with the next process:

    wget http://curl.haxx.se/download/curl-7.19.5.tar.gz
    tar -pxzf curl-7.19.5.tar.gz
    cd curl-7.19.5
    ./configure
    make
    make install

    But I still get the not found error... am I missing something??
     
  9. adlinkas

    adlinkas Member

    Joined:
    Apr 23, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've also enabled curl via WHW, but still got the not found curl/curl.h error at ./configure step

    - - - Updated - - -

    I think my previous post got missed... I'm doing the install as root but now at ./configure step i got:

    checking for curl/curl.h... not found
    configure: error: could not find curl/curl.h

    I enabled curl via WHM and also try to manually install it using curl.haxx but I still got the same error, am I missing something??
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Make sure "curl" and "curl-devel" are installed on the system. It looks like you installed "curl" from source, but it's likely easier if you uninstall it and install both packages through YUM.

    Thank you.
     
Loading...

Share This Page