【问题标题】:The 'puma' native gem requires installed build tools“puma”原生 gem 需要安装构建工具
【发布时间】:2016-08-24 23:59:39
【问题描述】:

我在运行 bundle install 时遇到了这个错误

Gem::InstallError: The 'puma' 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'

我正在使用已经有 DevKit 的 RailsInstaller。

我之前没有遇到过这个问题,但是我将 ruby​​ 版本从 2.2.4 更改为 2.2.5 后似乎得到了它。我用的是windows电脑。知道如何解决这个问题吗?

【问题讨论】:

    标签: ruby ruby-on-rails-4 railsinstaller-windows


    【解决方案1】:

    我按照以下说明解决了这个问题:

    • 从这里下载 devkit。

    • 在 DevKit 文件夹中安装文件

    • 打开 cmd 并导航到文件夹

    • 复制你安装在C盘的ruby文件夹路径,粘贴到DevKit\config.yml中。将路径中的“/”更改为“\”。

    应该是这样的:

    # Example:
    #
    # ---
    # - C:/ruby19trunk
    # - C:/ruby192dev
    #
    ---
    - C:\Ruby22
    
    • 运行ruby dk.rb install
    • 回到您的 rails 文件夹,运行 bundle install,您应该不会有任何错误

    【讨论】:

      猜你喜欢
      • 2011-12-27
      • 2013-07-04
      • 2014-09-23
      • 2015-07-20
      • 1970-01-01
      • 2016-08-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多