2017-05-02 4 views
0

Je rencontre des difficultés pour créer un projet Ruby sous Windows 7 Enterprise SP1.Gem :: InstallError: La gem native 'json' nécessite des outils de construction installés. Veuillez mettre à jour votre PATH pour inclure des outils de génération ou télécharger le DevKit.

Fetching gem metadata from https://rubygems.org/............ 
Fetching version metadata from https://rubygems.org/.. 
Resolving dependencies... 
Using awesome_print 1.7.0 
Installing json 2.1.0 with native extensions 
Using mini_portile2 2.1.0 
Using ffi 1.9.18 (x64-mingw32) 
Using rubyzip 1.2.1 
Using websocket 1.2.4 
Using tomlrb 1.2.4 
Using bundler 1.14.6 
Gem::InstallError: The 'json' 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 json (2.1.0), and Bundler cannot continue. 
Make sure that `gem install json -v '2.1.0'` succeeds before bundling. 

J'ai inclus à la fois Ruby et la DevKit dans ma variable d'environnement PATH, à savoir C:\Ruby22-x64\bin;C:\Ruby-DevKit\bin. Qu'est-ce qui pourrait mal tourner?

La commande est en cours d'exécution Je bundle install dans le répertoire ..\tindermation\node_modules\.bin de ce projet: https://github.com/feelobot/tindermation

Répondre

1

Je n'ai pas Initialiser et lier les installations de rubis dans mon DevKit à mon PATH:

téléchargé, a couru pour l'extraire quelque part (permanent). Puis cd à elle, exécutez ruby dk.rb init et ruby dk.rb install. La commande bundle install a fonctionné après avoir suivi ces étapes.