我如何用ruby上的json gem解决这个问题?

时间:2014-09-10 18:05:51

标签: ruby-on-rails ruby json gem

我试图安装一个json gem

gem install json

它引起了一个问题。

所以我决定卸载ruby-on-rails并重新安装。

所以现在我想在rails中执行我的项目。但是,我收到以下错误:

C:\Users\Franco\Documents\GitHub\RisePay-Ruby\Risepay>rails s
Could not find json-1.8.1 in any of the sources
Run `bundle install` to install missing gems.

我尝试再次安装Json并使用捆绑安装,但它没有用。

C:\Users\Franco\Documents\GitHub\RisePay-Ruby\Risepay>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Using rake 10.3.2
Using i18n 0.6.11

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

0 个答案:

没有答案