2016-07-06 9 views
1

Git BashでJekyll serveを実行すると、次の警告が表示されます。gemfileに記載されているか、またはこのマシンで利用可能な宝石ソースのいずれかでgem 'wdm(> = 0.1.0)x64-mingw32'を見つけることができませんでした

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の開発キットをインストールしようとしたが、私は次のエラーメッセージを取得してしまいます。

$ 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' 

答えて

1

あなたはそれをダウンロードするためにあなたのGemfileにwdm宝石を追加した後bundle installを実行する必要が

ruby dk.rb install --force 
+0

devkitをインストールするには、https://github.com/oneclick/rubyinstaller/wiki/Development-Kitの手順に従ってください。それで、[chocolatey](http://chocolatey.org/) - 'choco install ruby​​2.devkit'を使っても完全に動作します。 – koppor

0

を試してみてください、あなたが以前に開発キットをインストールしているようで、それが新規インストールをスキップします。

関連する問題