找不到宝石' wdm(> = 0.1.0)x64-mingw32'在您的Gemfile中列出的或在此计算机上可用的任何gem源中

时间:2016-07-06 01:15:15

标签: ruby jekyll devkit

当我在Git Bash上运行Jekyll服务时,我收到以下警告:

Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

添加Gemfile后,我收到另一条错误消息。

Could not find gem 'wdm (>= 0.1.0) x64-mingw32' in any of the gem sources
listed in your Gemfile or available on this machine.

我尝试安装Ruby Devkit来解决此问题但我最终只收到以下错误消息。

$ ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/Ruby200-x64'
[WARN] Skipping existing DevKit helper library for 'C:/Ruby200-x64'

$ gem install json --platform=ruby
ERROR: Error installing json:
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'

2 个答案:

答案 0 :(得分:1)

您之前似乎已经安装了devkit,它会跳过新安装,请尝试

ruby dk.rb install --force

答案 1 :(得分:1)

在将bundle install gem添加到您的Gemfile中以下载之后,您需要运行wdm