小编dan*_*ith的帖子

'在Windows 7上无法构建gem native extension'(系统找不到指定的路径)

问题简而言之

我在Windows上运行时遇到以下错误gem install json —platform=ruby:

The system cannot find the path specified.
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
The system cannot find the path specified.
ERROR:  Error installing json:
    ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
Run Code Online (Sandbox Code Playgroud)

背景和一些调查

首先,我不是Windows用户,所以这对我来说是一个勇敢的新世界.从工作中继承了一台笔记本电脑,其中有一系列疯狂的图书馆,我已经设法删除所有以前安装的ruby和Devkit,然后安装了以下内容:

  • 红宝石1.9.3p484与红宝石安装C:/Ruby193
  • 红宝石2.0.0p353与红宝石安装C:/Ruby200
  • Devkit DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe(用于ruby 1x)提取到C:/Ruby193-devkit
  • Devkit DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe …

ruby windows pik

20
推荐指数
3
解决办法
2万
查看次数

标签 统计

pik ×1

ruby ×1

windows ×1