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
|