Support Requests: Browse | Submit New | Admin

[#20289] I need help installing curb gem on RedHat RHEL3 server

Date:
2008-05-21 18:13
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
Install Problem (example)
State:
Open
Summary:
I need help installing curb gem on RedHat RHEL3 server

Detailed description
Version of curl I have installed:

-bash-2.05b$ curl --version
curl 7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4
Protocols: ftp gopher telnet dict ldap http file https ftps 
Features: IPv6 SSL libz NTLM 

Version of gems:

-bash-2.05b$ gem list

*** LOCAL GEMS ***

gem_plugin (0.2.3)
rake (0.8.1, 0.7.3, 0.7.1)
rubyforge (0.4.5)
rubygems-update (1.1.0, 0.9.3)
sources (0.0.1)

Uname

-bash-2.05b$ uname -a
Linux domain-name.com 2.4.21-53.EL #1 Wed Nov 14 03:54:27 EST 2007 i686 athlon i386 GNU/Linux

When installing gem I get the following error, I have no idea what to do next, please help:

-bash-2.05b$ sudo gem install curb
Password:
Updating metadata for 3 gems from http://gems.rubyforge.org/
...
complete
Building native extensions.  This could take a while...
ERROR:  Error installing curb:
        ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install curb
checking for main() in -lcurl... yes
checking for curl/curl.h... yes
creating Makefile

make
Makefile:119: warning: overriding commands for target `/usr/local/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
Makefile:117: warning: ignoring old commands for target `/usr/local/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
gcc -fPIC -g -O2 -Wall  -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_CURL_CURL_H
-c curb.c
gcc -fPIC -g -O2 -Wall  -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_CURL_CURL_H
-c curb_easy.c
curb_easy.c: In function `ruby_curl_easy_http_connect_code_get':
curb_easy.c:1501: `CURLINFO_HTTP_CONNECTCODE' undeclared (first use in this function)
curb_easy.c:1501: (Each undeclared identifier is reported only once
curb_easy.c:1501: for each function it appears in.)
make: *** [curb_easy.o] Error 1


Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/curb-0.1.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/curb-0.1.4/ext/gem_make.out

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-05-12 07:23
Sender: Sethupathi Asokan

By installing following  will solve the curl gem installation
issue.
sudo apt-get install libcurl4-openssl-dev
Date: 2009-03-17 14:11
Sender: Todd Fisher

Hi all, I've updated curb's extconf.rb to be more rigorous in
how it detects features of libcurl and ruby.  Please give it
a try if you can from my branch on github.com  here:
http://github.com/taf2/curb/tree/master,  You should be able
to test the installation of it by running these commands:
 
gem sources -a http://gems.github.com
gem install taf2-curb

I will be updating the curb project shortly to reflect the changes
in that branch.

Thanks,
Todd
Date: 2009-01-10 20:15
Sender: Dusty Doris

read the readme, says testing with 7.15 and higher. We are both
using one lower than that.

I installed curl from source and then installed curb pointing
to that installation.

gem install curb -- --with-curl-dir=/opt/curl-7.19.2

**
tar xvfz curl....gz
cd curl...
./configure --prefix=/opt/curl-7.19.2
make
make install
Date: 2009-01-10 20:10
Sender: Dusty Doris

I'm having similar issues.

# curl --version
curl 7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a
zlib/1.2.1.2 libidn/0.5.6
Protocols: ftp gopher telnet dict ldap http file https ftps 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

# gem install curb
checking for main() in -lcurl... yes
checking for curl/curl.h... yes
creating Makefile

make
Makefile:137: warning: overriding commands for target
`/opt/ruby-1.8.7-p72/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
Makefile:135: warning: ignoring old commands for target
`/opt/ruby-1.8.7-p72/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb_postfield.c
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb.c
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb_easy.c
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb_errors.c
curb_errors.c: In function `raise_curl_easy_error_exception':
curb_errors.c:302: error: `CURLE_SEND_FAIL_REWIND' undeclared
(first use in this function)
curb_errors.c:302: error: (Each undeclared identifier is reported
only once
curb_errors.c:302: error: for each function it appears in.)
curb_errors.c:305: error: `CURLE_SSL_ENGINE_INITFAILED' undeclared
(first use in this function)
curb_errors.c:308: error: `CURLE_LOGIN_DENIED' undeclared (first
use in this function)
make: *** [curb_errors.o] Error 1

# less gem_make.out

checking for main() in -lcurl... yes
checking for curl/curl.h... yes
creating Makefile

make
Makefile:137: warning: overriding commands for target
`/opt/ruby-1.8.7-p72/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
Makefile:135: warning: ignoring old commands for target
`/opt/ruby-1.8.7-p72/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb_postfield.c
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb.c
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb_easy.c
gcc -I. -I. -I/opt/ruby-1.8.7-p72/lib/ruby/1.8/i686-linux -I.
-DHAVE_CURL_CURL_H  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2  -Wall
-c curb_errors.c
curb_errors.c: In function `raise_curl_easy_error_exception':
curb_errors.c:302: error: `CURLE_SEND_FAIL_REWIND' undeclared
(first use in this function)
curb_errors.c:302: error: (Each undeclared identifier is reported
only once
curb_errors.c:302: error: for each function it appears in.)
curb_errors.c:305: error: `CURLE_SSL_ENGINE_INITFAILED' undeclared
(first use in this function)
curb_errors.c:308: error: `CURLE_LOGIN_DENIED' undeclared (first
use in this function)
make: *** [curb_errors.o] Error 1
Date: 2008-05-22 18:02
Sender: Nicholas Browning

Any word on this yet?

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item