From: "bogdann b." Date: 2012-05-10T22:20:30+09:00 Subject: 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 below): http://rubyforge.org/frs/download.php/75465/rubyinstaller-1.9.3-p0.exe Step 2: Next download the Ruby Dev-Kit (current direct link below): https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe Open the SFX EXE, when promoted to provide a directory path type in the following: C:\Ruby193\Dev-Kit\ 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 commands: 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): http://www.gknw.de/mirror/curl/win32/curl-7.23.1-devel-mingw32.zip Step 6: Using 7zip (or whatever extraction tool you have) extract the zip file to the following location: C:\Ruby193\lib\ruby\gems\1.9.1\gems\ In the end, you should have a new folder called curl-7.23.1-devel-mingw32. Browse to C:\Ruby193\lib\ruby\gems\1.9.1\gems\curl-7.23.1-devel-mingw32\bin 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 -- --with-opt-include='C:\Ruby193\lib\ruby\gems\1.9.1\gems\curl-7.23.1-devel-mingw32\include' --with-opt-lib='C:\Ruby193\lib\ruby\gems\1.9.1\gems\curl-7.23.1-devel-mingw32\bin' 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 (http://www.mediafire.com/?40uvu42hp09wpo1), just simply unzip it to any location (preferably C:\Ruby193\ to remember it's location). ----------------------------------------------------------------------- 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 typhoeus' . If you still get an error, Please see README file or http://code.google.com/p/ wpscan/ C:\Ruby193\wpscan>gem install --user-install typhoeus WARNING: You don't have C:\Documents and Settings\ANDREASS\.gem\ruby\1.9.1\bin 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 Settings/ANDREASS/.gem/ruby/1.9.1/g 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: --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:/Ruby193/bin/ruby Gem files will remain installed in C:/Documents and Settings/ANDREASS/.gem/ruby/ 1.9.1/gems/typhoeus-0.3.3 for inspection. Results logged to C:/Documents and Settings/ANDREASS/.gem/ruby/1.9.1/gems/typhoe us-0.3.3/ext/typhoeus/gem_make.out C:\Ruby193\wpscan> -- Posted via http://www.ruby-forum.com/.