Installing Typhoeus with DevKit

446 views
Skip to first unread message

Cane

unread,
Jan 3, 2011, 4:29:49 AM1/3/11
to RubyInstaller
Hello I tried to install Typhoeus (https://github.com/pauldix/
typhoeus), but it didn't work. Any help would be appreciated.

---

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
*** 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=C:/Ruby187/bin/ruby


Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/
typhoeus-0.
2.0 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/typhoeus-0.2.0/ext/
typhoeus/
gem_make.out

C:\Documents and Settings\Cane>

---

If I understand it correctly, there is some issue with libcurl. But I
don't know how to correct it...

Luis Lavena

unread,
Jan 3, 2011, 8:36:43 AM1/3/11
to rubyin...@googlegroups.com
On Mon, Jan 3, 2011 at 6:29 AM, Cane <cane.p...@gmail.com> wrote:
> Hello I tried to install Typhoeus (https://github.com/pauldix/
> typhoeus), but it didn't work. Any help would be appreciated.
>

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

pete

unread,
Jan 3, 2011, 2:20:00 PM1/3/11
to rubyin...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
> To post to this group, send email to rubyin...@googlegroups.com.
> To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
>
>

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

Reply all
Reply to author
Forward
0 new messages