my first install try

26 views
Skip to first unread message

lgs

unread,
Feb 21, 2009, 4:43:45 PM2/21/09
to Curb - Ruby libcurl Bindings
Hi,

it's my first try and that's what I did :

git clone git://github.com/taf2/curb.git
cd curb
rake gem
cd pkg/
gem install curb-0.2.7.2.gem
...
"and here I got the following errors" :
...
...
checking for curle_tftp_exists... yes
checking for curle_tftp_nosuchuser... yes
creating curb_config.h
creating Makefile

make
gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-
linux -I. -DRUBY_EXTCONF_H=\"curb_config.h\" -fPIC -g -O2 -Wall -c
curb_errors.c
curb_errors.c: In function `raise_curl_multi_error_exception':
curb_errors.c:389: error: `CURLM_BAD_SOCKET' undeclared (first use in
this function)
curb_errors.c:389: error: (Each undeclared identifier is reported only
once
curb_errors.c:389: error: for each function it appears in.)
curb_errors.c:392: error: `CURLM_UNKNOWN_OPTION' undeclared (first use
in this function)
make: *** [curb_errors.o] Error 1

Gem files will remain installed in /home/useraxis/.gems/gems/
curb-0.2.7.2 for inspection.
Results logged to /home/useraxis/.gems/gems/curb-0.2.7.2/ext/
gem_make.out


Here are some system configs :

[~/]# uname -a
Linux host42.hostmonster.com 2.6.27-6_1.intel.BHsmp #1 SMP Thu Nov 13
15:27:29 MST 2008 x86_64 x86_64 x86_64 GNU/Linux
[~/]# ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
user...@useraxis.org [~/.gems/gems/curb/pkg]#
[~/]# which curl
/usr/bin/curl

Any help will be greatly apreciated
Luca

Todd Fisher

unread,
Feb 22, 2009, 10:55:52 AM2/22/09
to curb---ruby-li...@googlegroups.com
What version of libcurl do you have installed?  If it's less then 7.15.4, it won't compile, see: http://curl.haxx.se/libcurl/c/curl_multi_setopt.html availability section.  If that is the case, we can add some configuration checks in extconf.rb to test for that version and either disable the features... or not start the build...

-Todd
Reply all
Reply to author
Forward
0 new messages