ruby - Curb curb-fu gem installation problem -
i've installed curb , curb-fu gem , libcurl on ubuntu box.
if go irb , run following
irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'curb' => true irb(main):003:0> require 'json' => true irb(main):004:0> require 'curb-fu' => true irb(main):005:0>
so seems have access gems.
but i've created simple ruby app that's giving me error:
#!/usr/bin/ruby require 'rubygems' require 'curb' require 'json' require 'curb-fu' response = curbfu.get('http://slashdot.org') puts response.body
i following error back.
/usr/lib/ruby/gems/1.8/gems/curb-fu-0.4.4/lib/curb-fu/authentication.rb:3: uninitialized constant curbfu::authentication::curl (nameerror)
i have feeling it's libcurl , have tried several different versions still no joy.
can offer assistance?
cheers
togs
i managed work.
i uninstalled both curb , curb-fu gem , re-installed them.
i have curb-fu working.
for future reference having problems this.. these libcurl bits installed.
libcurl3 libcurl3-gnutls libcurl4-openssl-dev
Comments
Post a Comment