byrney / vagrant8

(Obsolete) Vagrant setup for windows 8 dev box with Git, Ruby, VS2013, Vim, Cmder
2 stars 1 forks source link

Installation of gems fails due to ruby devkit path not set in PATH env variable #2

Open ankitbansal82 opened 9 years ago

ankitbansal82 commented 9 years ago

Error excerpt: Install missing gems with bundle install DL is deprecated, please use Fiddle Fetching gem metadata from https://rubygems.org/....... Fetching additional metadata from https://rubygems.org/.. Resolving dependencies..... Using rake 10.3.2 Using rUtilAnts 2.0.0.20130827 Using ProcessPilot 2.0.0.20120301 Using builder 3.2.2 Using gyoku 1.1.1 Using mini_portile 0.6.2 Using nokogiri 1.6.5 Using akami 1.2.1 Using facter 1.7.6 Using highline 1.6.21 Using map 6.5.4 Using semver2 3.3.3 Using albacore 2.0.0.rc.17 Using amq-protocol 1.9.2

Gem::InstallError: The 'eventmachine' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' An error occurred while installing eventmachine (1.0.4), and Bundler cannot continue. Make sure that gem install eventmachine -v '1.0.4' succeeds before bundling. rake aborted! Command failed with status (5): [bundle check || bundle install...] C:/workingarea/dex/Source/Web/Rakefile:25:in `block in <top (required)>' Tasks: TOP => setup (See full trace by running task with --trace)

ankitbansal82 commented 9 years ago

Manual workaround: append following to PATH variable
c:\tools\DevKits\bin;c:\tools\devkits\mingw\bin;

TO verify next time someone sets up a new box, if he/she too faces similar error. This might be resolved by pinning down the versions of ruby and rubydevkit installed by chocolatey.

byrney commented 9 years ago

The chocolatey package does trigger devkit setup but devkit does not detect the ruby on 64 bit windows. Problem explained here:

https://stackoverflow.com/questions/16523607/cant-get-ruby-devkit-configuration-file-autogenerated-properly