# Curb gem not getting installed

**URL:** <https://www.ruby-forum.com/t/curb-gem-not-getting-installed/177353>\
**Category:** Rails\
**Created:** [October 15, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/curb-gem-not-getting-installed/177353 "2009-10-15T14:49:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nirav\_Parekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7cd45c/32.png) [@Nirav\_Parekh](https://www.ruby-forum.com/u/Nirav_Parekh)\
**Post date:** [October 15, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/curb-gem-not-getting-installed/177353/1 "2009-10-15T14:49:20Z")

</div>

Hi,

I am trying to install curb on my windows machine. I went through a few  
web  
pages directing to install it. I installed curl-7.19.6 binary and  
provided  
the path in the environment variables. I can now use the curl command  
line.  
Then I went on to installing curb using the gem install curb.

## It gave me the following error.

C:\Documents and Settings\Administrator\Desktop\>gem install curb  
Building native extensions. This could take a while…  
ERROR: Error installing curb:  
ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb install curb  
checking for curl-config… no  
checking for main() in curl.lib… 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  
–srcdir=.  
–curdir  
–ruby=C:/Ruby/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:12: 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  
C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.5.4.0 f  
or inspection.  
Results logged to  
C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.5.4.0/ext/gem\_make.out

* * *

The path of curl folder is under c drive  
c:/curl-7.19.6

How do I install curl on my windows machine…

Thank you.
