簡體   English   中英

安裝json gem時出錯:“ json”本機gem需要安裝的構建工具

[英]Error installing json gem: The 'json' native gem requires installed build tools

當我嘗試安裝此gem時,它聲稱我需要安裝devkit,盡管我確定我確實安裝了它。 它還建議我需要在PATH中更新我的系統變量,該變量已直接鏈接到ruby中的devkit文件。 我在Stack Overflow上看到了其他問題,但這些問題與我的問題無關。 這是完整的錯誤消息:

C:\Users\Mahamoud>gem install json
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,仍然沒有結果。 我的devkit位於C:\\ Ruby193 \\ bin中

這里有安裝DevKit的詳細步驟:

https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

為了測試您的安裝是否正常運行,您應該嘗試以下操作:

gem install json --platform=ruby

因此,您應該已經安裝了json。 與其重新安裝ruby,不如嘗試重新安裝DevKit ...並完全按照說明進行操作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM