ruby-on-rails - 我无法在 ruby 中安装其中一个 gem

标签 ruby-on-rails ruby git

我正在尝试让我的 git 存储库工作,但我做不到。在我的命令行中,我在 reprository 的目录中。我给出了“捆绑安装”命令来获取我需要工作的所有 gem ,但我无法完成它。它一直告诉我这个错误:

Using bcrypt 3.1.10
Installing debug_inspector 0.0.2 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    C:/Ruby22/bin/ruby.exe -r ./siteconf20150726-3952-czpz5l.rb extcon
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
generating debug_inspector-i386-mingw32.def
make: *** No rule to make target `/C/Ruby22/include/ruby-2.2.0/ruby.h'
y `debug_inspector.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/
ector-0.0.2 for inspection.
Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32
ug_inspector-0.0.2/gem_make.out
An error occurred while installing debug_inspector (0.0.2), and Bundle
continue.
Make sure that `gem install debug_inspector -v '0.0.2'` succeeds befor
bundling.

最佳答案

看来你有 Windows 机器。确保您安装了正确版本的 Ruby Devkit以便构建 native 扩展。

关于ruby-on-rails - 我无法在 ruby 中安装其中一个 gem ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31640365/

相关文章:

git - 在 git 中,如果提交每个字符更改,大小会以什么速率增加?

ruby-on-rails - 如何根据开发数据库模式重新创建测试装置

ruby-on-rails - 从 Rails 应用程序检索客户端系统信息

ruby - 如何为动态实例变量设置 attr_accessor?

ruby - 使用 Cucumber、Mechanize、Webrat 拯救 HTTP 404 Mechanize::ResponseCodeError 异常

ruby - 时区.rb :270: warning: circular argument reference - now

ruby-on-rails - Ruby GIS - 将 NAD83 转换为 WGS84

javascript - Rails 复选框隐藏字段类

git - 使用反向补丁推送后撤消 Git 提交?

linux - Gitolite 和非裸仓库?