2015-02-11 105 views
-1

我在嘗試安裝Rails時,這個錯誤:錯誤:安裝導軌錯誤:無法建立寶石原生擴展

Z:\AlexL\My Documents\rails>gem install rails 
ERROR: Error installing rails: 
     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' 

Z:\AlexL\My Documents\rails>gem install rails -include-dependencies 
ERROR: Error installing rails: 
     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' 
ERROR: While executing gem ... (URI::InvalidURIError) 
    bad URI(is not URI?): ?gems=ûinclude-dependencies 

Z:\AlexL\My Documents\rails>rails 
'rails' is not recognized as an internal or external command, 
operable program or batch file. 

我的紅寶石版本是:

紅寶石1.9.3p484

我該如何解決這個問題?我在窗戶旁邊。

+0

請粘貼完整的堆棧跟蹤 – Rodrigo 2015-02-11 11:47:59

+0

確定加入這一切現在 – user1937021 2015-02-11 11:51:08

回答

1

你有明確的錯誤消息指出:

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 '

所以,我的建議是你下載的devkit,並按照指示。

+0

我已經安裝了DK – user1937021 2015-02-11 11:55:05

+0

然後更新您的'PATH'環境變量紅寶石找到二進制文件。 – mudasobwa 2015-02-11 11:56:29

+0

我該怎麼做? – user1937021 2015-02-11 11:58:13

相關問題