Forum: Ruby Curb Install Problems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Red D. (Guest)
on 2008-12-03 19:39
Hey

I'm trying to install Curb on

os - CentOS
ruby - ruby 1.8.6 (2007-06-07 patchlevel 36) [i386-linux]

I receive this error

Building native extensions.  This could take a while...
ERROR:  Error installing curb:
        ERROR: Failed to build gem native extension.

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

make
Makefile:123: warning: overriding commands for target
`/usr/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
Makefile:121: warning: ignoring old commands for target
`/usr/lib/ruby/gems/1.8/gems/curb-0.1.4/lib'
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -DHAVE_CURL_CURL_H  -fPIC
-O2 -g -march=i386 -mcpu=i686 -Wall  -fPIC -Wall  -c curb.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -DHAVE_CURL_CURL_H  -fPIC
-O2 -g -march=i386 -mcpu=i686 -Wall  -fPIC -Wall  -c curb_postfield.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -DHAVE_CURL_CURL_H  -fPIC
-O2 -g -march=i386 -mcpu=i686 -Wall  -fPIC -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

Any help would be great

Cheers, Red
Tom M. (Guest)
on 2008-12-03 22:55
(Received via mailing list)
On 2008-12-03, Red D. <removed_email_address@domain.invalid> wrote:
> Hey
>
> I'm trying to install Curb on
>
> os - CentOS
> ruby - ruby 1.8.6 (2007-06-07 patchlevel 36) [i386-linux]
>

I had similar problems installing Curb on Ubuntu. I fumbled around and
installed a few different Curl packages:

libcurl3 - 7.18.2-1ubuntu4
libcurl3-gnutls - 7.18.2-1ubuntu4
libcurl4-openssl-dev - 7.18.2-1ubuntu4

After installing all three, the Gem install worked perfectly.
Red D. (Guest)
on 2008-12-04 12:44
Tom M. wrote:
> On 2008-12-03, Red D. <removed_email_address@domain.invalid> wrote:
>> Hey
>>
>> I'm trying to install Curb on
>>
>> os - CentOS
>> ruby - ruby 1.8.6 (2007-06-07 patchlevel 36) [i386-linux]
>>
>
> I had similar problems installing Curb on Ubuntu. I fumbled around and
> installed a few different Curl packages:
>
> libcurl3 - 7.18.2-1ubuntu4
> libcurl3-gnutls - 7.18.2-1ubuntu4
> libcurl4-openssl-dev - 7.18.2-1ubuntu4
>
> After installing all three, the Gem install worked perfectly.

Thanks for the reply, I'm trying it out now, will let you know how it
goes

Cheers, Red
This topic is locked and can not be replied to.