Ruby gem on windows error

I am trying to run a ruby program so far is not working. I followed this
guide for my program:

How to install on Windows (Verified on x64 and x86 Windows 7)

Step 1: Download and install the latest ruby (current direct link

Step 2: Next download the Ruby Dev-Kit (current direct link below):

Open the SFX EXE, when promoted to provide a directory path type in the


This will simply create a new folder in your ruby root directory. If you
have 7zip you can simply create a new folder called Dev-Kit and extract
the files manually into this folder.

Step 3: Next you must install the Dev-Kit, which is explained on the
official website, but I will give you the steps here for the exact
results that I’ve achieved.

  • Open cmd (must run as administrator). - Type in the following

cd C:\Ruby193\Dev-Kit ruby dk.rb init then ruby dk.rb install

NOTE: It should output “INFO? Installing
‘C:/Ruby193/lib/ruby/site_ruby/devkit.rb’” after running install, which
is normal and should be successful.

Step 4: Next we need to install a required gem for wpscan. Type the
following in the command console:

gem install xml-simple

Step 5: Download the latest version of curl devel mingw32 (current
direct link below):

Step 6: Using 7zip (or whatever extraction tool you have) extract the
zip file to the following location:


In the end, you should have a new folder called

Browse to

Copy all of the files in this current folder over to C:\Ruby193\bin. If
asked to over-write a file, just choose Yes (I’ve never hada ny issues).

Step 7: Now it’s time to actually install typhoeus. So, with your
command prompt still open, type in the following command:

gem install typhoeus –

Step 8 (FINAL): Now just simply download the svn with any SVN client
that you have, if you’re unfamiliar with SVN I uploaded the 7zip of the
whole package (, just simply
unzip it to any location (preferably C:\Ruby193\ to remember it’s

The result after all steps completed:

Copied from ruby console
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]

C:\Ruby193>cd wpscan

C:\Ruby193\wpscan>ruby wpscan.rb
[ERROR] cannot load such file – typhoeus
[TIP] Try to run ‘gem install typhoeus’ or ‘gem install --user-install
. If you still get an error, Please see README file or

C:\Ruby193\wpscan>gem install --user-install typhoeus
WARNING: You don’t have C:\Documents and
in your PATH,
gem executables will not run.
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:/Ruby193/bin/ruby.exe extconf.rb

extconf.rb:9: Use RbConfig instead of obsolete and deprecated Config.
checking for curl/curl.h in C:/Documents and
ems/typhoeus-0.3.3/cross/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:

Gem files will remain installed in C:/Documents and
1.9.1/gems/typhoeus-0.3.3 for inspection.
Results logged to C:/Documents and


Try ‘gem install typhoeus’

As far as I can tell you didn’t use the --user-install option for the
other gems

As a rule i avoid installing anything ruby related in a path that
contains spaces in the name as
lots of things get tripped up by it