Did you installed the DevKit?
> ---
>
> ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]
>
> C:\Documents and Settings\Cane>gem install typhoeus
> Temporarily enhancing PATH to include DevKit...
> Building native extensions. This could take a while...
> ERROR: Error installing typhoeus:
> ERROR: Failed to build gem native extension.
>
> C:/Ruby187/bin/ruby.exe extconf.rb
> checking for curl/curl.h in C:/Ruby187/lib/ruby/gems/1.8/gems/
> typhoeus-0.2.0/cro
> ss/curl-7.19.4.win32/include... no
> need libcurl
Does the gem really include the cross/curl-7.19.4.win32 folder? Please
inspect the files ship with the gem:
gem spec typhoeus files --remote
If the files are there, then we can look into why is not compiling.
There is a huge chance the files are not there and the extconf is
looking for them.
If that is the case, you will need to provide options to extconf
process with something like this:
gem instal typhoeus -- --with-curl-dir=...
I don't know the exact parameters, you will need to look inside the
extconf of the gem to know what directories it is using for
configuration (look for dir_config invocations)
Or you can try with --with-opt-dir too.
>
> If I understand it correctly, there is some issue with libcurl. But I
> don't know how to correct it...
>
See above comments, if you need libcurl, search the group for another
thread about it.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
A while back I tried to get various curl bindings to work with ruby on
windows, and I couldn't get typhoeus to work. I ended up using the
curb gem instead [1]. One user reported success by editing the
extconf.rb [2], but I couldn't get that method to work when I tried
it. Just now when looking for that issue, I noticed another user has
reported success building fat binary gems for windows, and has them
available on their fork [3]. I can't personally vouch for these, but
it might be worth trying.
pete
1: http://beginrescue.blogspot.com/2010/07/installing-curb-with-ruby-191-in.html
2: https://github.com/pauldix/typhoeus/issues#issue/11
3: https://github.com/pauldix/typhoeus/issues#issue/6/comment/339300