我試圖運行bundle install
,我得到了以下錯誤消息(附截圖):寶石:: InstallError:在「nio4r」本土寶石需要安裝編譯工具
Gem::InstallError: The 'nio4r' 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 nio4r (1.2.1), and Bundler cannot continue.
Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
所以後來,我運行gem install nio4r -v '1.2.1'
,並按照下面的截圖完美安裝。
您是否安裝了DevKit? – thesecretmaster
是的,我已經安裝。 –
如果您嘗試以管理員身份運行cmd,行爲是否會改變? – whodini9