2015-06-10 13 views
5

Mam problemy z instalacją Railsów w systemie Windows. Nie można zainstalować json gem, z komunikatem o błędzie poniżej.Błąd podczas instalowania szyn json gem - bundler nie może kontynuować

 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

Nie mają przesłać na stronie osoby trzeciej. Stackoverflow zapewnia sposób na przesłanie obrazu i dołączenie go do twojego pytania. –

Odpowiedz

5

Odczytując zrzut ekranu błędu, wydaje się, że w systemie brakuje niezbędnych narzędzi do kompilacji wymaganych przez niektóre natywne rozszerzenia C/C++.

Możesz spróbować zainstalować RubyInstaller Development Kit. Ten zestaw narzędzi pomaga w używaniu natywnych rozszerzeń C/C++ dla Ruby na twoim komputerze z Windows.

Instrukcje instalacji można znaleźć here.

Po zainstalowaniu uruchom gem update --system, a następnie spróbuj ponownie.

Mam nadzieję, że to pomoże!

+0

Teraz działa. Dzięki –

9

Run to Command

sudo apt-get install libgmp-dev 
+7

"... instalacja szyn w ** oknach **" –

Powiązane problemy