Thursday, October 24, 2013

Gem::Installer::ExtensionBuildError: ERROR

Error : Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem                    native extension.

          /home/sachin/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb 
          checking for curl-config... no
          checking for main() in -lcurl... no
          *** extconf.rb failed ***
          Could not create Makefile due to some reason, probably lack of
          necessary libraries and/or headers.  Check the mkmf.log file for more
          details.  You may need configuration options.

          Provided configuration options:
         --with-opt-dir
         --without-opt-dir
         --with-opt-include
         --without-opt-include=${opt-dir}/include
         --with-opt-lib
         --without-opt-lib=${opt-dir}/lib
         --with-make-prog
         --without-make-prog
         --srcdir=.
         --curdir
         --ruby=/home/sachin/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
         --with-curl-dir
         --without-curl-dir
         --with-curl-include
         --without-curl-include=${curl-dir}/include
         --with-curl-lib
         --without-curl-lib=${curl-dir}/lib
         --with-curllib
         --without-curllib
          extconf.rb:23:in `<main>':   Can't find libcurl or curl/curl.h                             (RuntimeError)

          Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
           options to extconf.


Gem files will remain installed in /home/sachin/.rvm/gems/ruby-1.9.2-p320/gems/curb-0.8.2 for inspection.
Results logged to /home/sachin/.rvm/gems/ruby-1.9.2-p320/gems/curb-0.8.2/ext/gem_make.out


Solution:


sudo apt-get install curl  

sudo apt-get install libcurl3 libcurl3-dev

sudo gem install typhoeus 

Reactions:

0 comments:

Post a Comment