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.

cURL not compiling

Discussion in 'General Discussion' started by ChildOTK, Jan 18, 2012.

  1. ChildOTK

    ChildOTK Member

    Joined:
    Aug 2, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Good Day,

    Yesterday I proceeded to update the PHP version being used on the server so I could try out the latest version of osCommerce, and now cURL won't compile and install.

    Various scripts on our sites use cURL so we can't process any donations / payments online. So I appreciate any help I can get with this.

    I get the following when using EasyApache:

    When manually running the command it gets stuck at:

    I noticed that the installed version of cURL on the server was 7.15 while cPanel was trying to install 7.23. So I tried manually updating cURL with YUM, but it only showed version 7.15.

    I found a repo which had 7.23 so I installed the repo and was able to update cURL to 7.23. However I still get the same errors when trying to compile.

    Does anybody have any suggestions?

    Thank you!
     
    #1 ChildOTK, Jan 18, 2012
    Last edited by a moderator: Jan 18, 2012
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you run the following command:

    Code:
    cd /home/cpeasyapache/src/curl-7.21.6/src
    ldd ../lib/.libs/libcurl.so|grep ldap
    If your folder is not called curl-7.21.6, please cd to whatever folder it is called for the latest curl in that /home/cpeasyapache/src folder.

    If you get a return such as the following:

    Code:
    libldap-2.3.so.0 => /libavfilter/libldap-2.3.so.0 (0x002fe000)
    Please move the /libavfilter/libldap* files entirely:

    Code:
    mv /libavfilter/libldap* /root
    Then try to run make on that folder:

    Code:
    cd /home/cpeasyapache/src/curl-7.21.6/src
    make
    At that point, then try to re-run EasyApache recompile to enable CurlSSL. If it still is not working at that point, please submit a ticket in WHM > Support Center > Contact cPanel or using the link in my signature. Please post the ticket number here if possible for tracking purposes.
     
  3. ChildOTK

    ChildOTK Member

    Joined:
    Aug 2, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Tristan,

    Code:
    root@w1 [/home/cpeasyapache/src/curl-7.23.1/src]# ldd ../lib/.libs/libcurl.so|grep ldap
    ldd: ../lib/.libs/libcurl.so: No such file or directory
    
    Jared,

    Code:
    root@w1 [/home/cpeasyapache/src/curl-7.23.1/src]# rpm -q curl
    curl-7.23.1-5.0.cf.rhel5
    curl-7.23.1-5.0.cf.rhel5
    root@w1 [/home/cpeasyapache/src/curl-7.23.1/src]# rpm -q curl-devel
    package curl-devel is not installed
    
    I tried to install curl-devel

    Code:
    root@w1 [/home/cpeasyapache/src/curl-7.23.1/src]# yum install curl-devel
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * atomic: www5.atomicorp.com
     * city-fan.org: www.city-fan.org
     * rpmforge: apt.sw.be
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Package curl-devel is obsoleted by libcurl-devel, trying to install libcurl-devel-7.23.1-5.0.cf.rhel5.x86_64 instead
    Package libcurl-devel-7.23.1-5.0.cf.rhel5.x86_64 already installed and latest version
    Package curl-devel is obsoleted by libcurl-devel, trying to install libcurl-devel-7.23.1-5.0.cf.rhel5.i386 instead
    Package libcurl-devel-7.23.1-5.0.cf.rhel5.i386 already installed and latest version
    Nothing to do
    
    Code:
    root@w1 [/home/cpeasyapache/src/curl-7.23.1/src]# yum install libcurl-devel
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * atomic: www5.atomicorp.com
     * city-fan.org: download.virtensys.com
     * rpmforge: apt.sw.be
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Package libcurl-devel-7.23.1-5.0.cf.rhel5.x86_64 already installed and latest version
    Package libcurl-devel-7.23.1-5.0.cf.rhel5.i386 already installed and latest version
    Nothing to do
    
    Thanks for your quick responses.
     
  4. ChildOTK

    ChildOTK Member

    Joined:
    Aug 2, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Jared,

    I have removed the newer version of cURL and disabled the repo with the newer version, and installed curl and curl-devel

    Code:
    root@w1 [/etc/yum.repos.d]# rpm -q curl
    curl-7.15.5-9.el5_7.4
    curl-7.15.5-9.el5_7.4
    root@w1 [/etc/yum.repos.d]# rpm -q curl-devel
    curl-devel-7.15.5-9.el5_7.4
    curl-devel-7.15.5-9.el5_7.4
    
    I will try moving the /opt/curlssl to another folder and see what happens.
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If this still does not work, please do submit a ticket to us. Thanks!
     
  6. ChildOTK

    ChildOTK Member

    Joined:
    Aug 2, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Thank you, I will now. I now have an empty /opt/curlssl/ directory.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Thank you for submitting a ticket. We found the following error message in "/home/cpeasyapache/src/config.log" was relevant in this case:

    Code:
    configure:24061: ./conftest
    ./conftest: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
    Often times, local user supplied libraries are utilized in cases when they should not be. In this case, there was a copy of librtmp.so found in /usr/local/lib:

    Code:
    root@server [/home/cpeasyapache/src/curl-7.23.1]# ll /usr/local/lib/librtmp.so*
    lrwxrwxrwx 1 root root     12 Sep  8 14:54 /usr/local/lib/librtmp.so -> librtmp.so.0*
    -rwxr-xr-x 1 root root 113286 Sep  8 14:54 /usr/local/lib/librtmp.so.0*
    
    The file and symbolic link were moved, and EasyApache was ran again. This resolved the issue.

    Thank you.
     
Loading...

Share This Page