From: Luis Parravicini Date: 2010-05-19T07:05:22+09:00 Subject: Re: curl library? On Tue, May 18, 2010 at 6:56 PM, Xeno Campanoli / Eskimo North and Gmail wrote: > On 10-05-18 02:35 PM, Xeno Campanoli / Eskimo North and Gmail wrote: >> >> Two questions: >> >> 1. How do I install the curl library for Ruby? I thought there was >> one...??? >> 2. How come when I go 'gem search curl' I get: >> >>> root@rockhopper:~# gem search curl >>> >>> *** LOCAL GEMS *** >>> >>> >>> root@rockhopper:~# >> >> ??? >> > I just got the following responses trying to install curb and curl-multi: > > # gem install curl-multi > Building native extensions.  This could take a while... > ERROR:  Error installing curl-multi: >        ERROR: Failed to build gem native extension. > > /usr/bin/ruby1.8 extconf.rb > extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) >        from extconf.rb:1 > > > Gem files will remain installed in /var/lib/gems/1.8/gems/curb-0.7.1 for > inspection. > Results logged to /var/lib/gems/1.8/gems/curb-0.7.1/ext/gem_make.out > root@rhaptools:~# gem install curb > Building native extensions.  This could take a while... > ERROR:  Error installing curb: >        ERROR: Failed to build gem native extension. > > /usr/bin/ruby1.8 extconf.rb > extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) >        from extconf.rb:1 > > > Gem files will remain installed in /var/lib/gems/1.8/gems/curb-0.7.1 for > inspection. > Results logged to /var/lib/gems/1.8/gems/curb-0.7.1/ext/gem_make.out You should try to search the forum first for the answer: http://www.google.com/search?hl=en&q=`require'%3A+no+such+file+to+load+--+mkmf+(LoadError)+site%3Aruby-forum.com Anyway, you need the ruby development packages. In ubuntu / debian its named ruby1.8-dev (or ruby1.9-dev) Bye -- Luis Parravicini http://ktulu.com.ar/blog/