2016-07-06 10 views
1

Git Bash에서 Jekyll 서브를 실행하면 다음 경고가 표시됩니다 :Gemfile에 나열되어 있거나이 기기에서 사용 가능한 보석 소스에서 '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 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' 

답변

1

당신이 전에 devkit를 설치 한 것, 그리고 그것은 새 설치를 건너 뜁니다, 당신은 그것을 다운로드하여 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 ruby2.devkit'을 사용할 때도 완벽하게 작동합니다. – koppor

0

보십시오.