Install Typhoeus on Ruby on Rails on windows xp (32 bit)

I try to make a simple "rails" server in my "Ruby on Rails" application, however I work with my friend who uses linux, I sit on windows xp (32 bit) everything runs smoothly and everything, it implements a stone called "curl "and typhoid, so in order to watch it on my localhost: 3000, I must also install gems.


So here is what I wrote:


D:\>gem install typhoeus
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.4/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.4 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/typhoeus-0.2.4/ext/typhoeus/
gem_make.out


Yes, it doesn’t look so pretty, but it asks for something called "libcurl", so I downloaded the curl version from the Internet for windows xp 32bit, I put the exefile and all the DLL files in the Windows folder, And I tried to just write "curl" to see if it worked. This is what I got:

D:\>curl
curl: try 'curl --help' or 'curl --manual' for more information

gem install typhoeus, , , ? libcurl ? , , -linux. , , - , , ! ( gem install typhoeus-0.2.4, :

ERROR:  Could not find a valid gem 'typhoeus-0.2.4' (>= 0) in any repository

)

, ruby ​​on rails. !

,

+3
4

Windows 7, extconf.rb . need libcurl:

if Config::CONFIG['target_os'] == 'mingw32'
  header = File.join(ROOT, 'cross', 'curl-7.19.4.win32', 'include')
  unless find_header('curl/curl.h', header)
    abort "need libcurl"
  end

File.join make (cross/curl-7.19.4.win32/include), typhoeus, make .

( ), , File.join(), . extconf.rb:

if Config::CONFIG['target_os'] == 'mingw32'
  header = File.join('C:\RailsInstaller\Ruby1.9.2\lib\ruby\gems\1.9.1\gems\curl-7.19.4-devel-mingw32', 'include')
  unless find_header('curl/curl.h', header)
    abort "need libcurl"
  end

:

if Config::CONFIG['target_os'] == 'mingw32'
  find_library('curl', 'curl_easy_init',
               File.join('C:\RailsInstaller\Ruby1.9.2\lib\ruby\gems\1.9.1\gems\curl-7.19.4-devel-mingw32', 'bin'))

, DevKit, .

, !

+2
+1

, RocketR, Typhoeus (0.2.4). GitHub (https://github.com/dbalatero/typhoeus/issues/11#issuecomment-309957)

less involved workaround for typhoeus
0.1.29 on ruby 1.9.1 -- just give it what it wants.

----------- checking for curl/curl.h in C:/path/to/ruby/gems/1.9.1/gems/typhoeus-0.1.29/cross/curl-7.19.4.win32/include... no need libcurl
-----------

download: http://www.gknw.de/mirror/curl/win32/old_releases/curl-7.19.4-devel-mingw32.zip

mkdir C:/path/to/ruby/gems/1.9.1/gems/typhoeus-0.1.29/cross, extract, rename to curl-7.19.4.win32

gem install typhoeus, as you would normally.
+1

Ruby193 Windows Vista/7. typhoeus

gem install typhoeus

vista.

, curl.exe , .

typhoeus script, .

0

All Articles