【问题标题】: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在您的 Gemfile 中列出的或本机上可用的任何 gem 源中找不到 gem 'wdm (>= 0.1.0) x64-mingw32'
【发布时间】:2016-07-06 01:15:14
【问题描述】:

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

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'

【问题讨论】:

    标签: ruby jekyll devkit


    【解决方案1】:

    您需要在将wdm gem 添加到您的Gemfile 后运行bundle install 才能下载它。

    【讨论】:

      【解决方案2】:

      好像你之前安装过devkit,跳过新安装,试试

      ruby dk.rb install --force
      

      【讨论】:

      猜你喜欢
      • 2017-07-14
      • 2018-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-11
      • 2018-08-12
      • 1970-01-01
      相关资源
      最近更新 更多