2015-06-10 13 views
5

Ho problemi con l'installazione di Rails su Windows. Non è possibile installare la gemma json, con il seguente messaggio di errore.Errore durante l'installazione delle rotaie json gem - bundler non può continuare

 create test/integration/.keep 
     create test/test_helper.rb 
     create tmp/cache 
     create tmp/cache/assets 
     create vendor/assets/javascripts 
     create vendor/assets/javascripts/.keep 
     create vendor/assets/stylesheets 
     create vendor/assets/stylesheets/.keep 
     run bundle install 
Fetching gem metadata from https://rubygems.org/............ 
Fetching version metadata from https://rubygems.org/... 
Fetching dependency metadata from https://rubygems.org/.. 
Resolving dependencies........... 
Using rake 10.4.2 
Using i18n 0.7.0 

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 (1.8.3), and Bundler cannot continue. 
Make sure that `gem install json -v '1.8.3'` succeeds before bundling. 
+0

Non sono tenuti a caricare su un lato di terze parti. Stackoverflow fornisce un modo per caricare un'immagine e allegarla alla tua domanda. –

risposta

5

Dalla lettura dello screenshot dell'errore, sembra che sul sistema manchino gli strumenti di compilazione necessari richiesti da alcune estensioni native C/C++.

Si può provare a installare RubyInstaller Development Kit. Questo toolkit aiuta a usare le estensioni native C/C++ per Ruby sul tuo computer Windows.

Istruzioni di installazione sono disponibili here.

Dopo l'installazione, eseguire gem update --system, quindi riprovare.

Spero che questo aiuti!

+0

Ora funziona. Grazie –

9

Esegui il Comando

sudo apt-get install libgmp-dev 
+7

"... installazione di rails su ** windows **" –