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.

Installing CURB (gem) on CentOS

Discussion in 'General Discussion' started by SomeoneX, Sep 4, 2009.

  1. SomeoneX

    SomeoneX Member

    Joined:
    Aug 24, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I was trying to install CURB, but I get this error (SSH):

    Code:
    [~]# gem install curb
    Building native extensions.  This could take a while...
    ERROR:  Error installing curb:
            ERROR: Failed to build gem native extension.
    
    /usr/bin/ruby extconf.rb
    checking for curl-config... no
    checking for main() in -lcurl... no
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of
    necessary libraries and/or headers.  Check the mkmf.log file for more
    details.  You may need configuration options.
    
    Provided configuration options:
            --with-opt-dir
            --without-opt-dir
            --with-opt-include
            --without-opt-include=${opt-dir}/include
            --with-opt-lib
            --without-opt-lib=${opt-dir}/lib
            --with-make-prog
            --without-make-prog
            --srcdir=.
            --curdir
            --ruby=/usr/bin/ruby
            --with-curl-dir
            --without-curl-dir
            --with-curl-include
            --without-curl-include=${curl-dir}/include
            --with-curl-lib
            --without-curl-lib=${curl-dir}/lib
            --with-curllib
            --without-curllib
    extconf.rb:12:   Can't find libcurl or curl/curl.h (RuntimeError)
    
      Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
      options to extconf.
    
    
    Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/curb-0.5.1.0 for inspection.
    Results logged to /usr/lib/ruby/gems/1.8/gems/curb-0.5.1.0/ext/gem_make.out
    Does anybody know how to fix this?

    My server:
    cPanel 11.24.5-S38506 - WHM 11.24.2 - X 3.9
    CENTOS 5.3 x86_64

    Thanks in advance :)
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    Is curl and curl-devel package installed on the server?
     
  3. SomeoneX

    SomeoneX Member

    Joined:
    Aug 24, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Thanks a lot.

    Curl is already installed. I installed curl-devel-7.15.5-2.1.el5_3.5.x86_64.rpm and it works now :)

    Thanks again for the help.
     
Loading...

Share This Page