繁体   English   中英

gem install json --platform = ruby​​ Windows 7 64位失败

[英]gem install json --platform=ruby failed windows 7 64 bit

我正在遵循DevKit来安装json gem。 但是它对我没有用。 这使我无法进行bundle install 电脑是Win 7 64位。 通过了ruby dk.rb initruby dk.rb install命令。

ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]
Rails 4.2.6

错误

>gem install json --platform=ruby
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.

    current directory: C:/ruby/lib/ruby/gems/2.1.0/gems/json-1.8.3/ext/json/ext/
generator
C:/ruby/bin/ruby.exe -r ./siteconf20160413-5616-jod3h4.rb extconf.rb
creating Makefile

extconf failed, exit code 1

Gem files will remain installed in C:/ruby/lib/ruby/gems/2.1.0/gems/json-1.8.3 f
or inspection.
Results logged to C:/ruby/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/json-
1.8.3/gem_make.out

在执行ruby dk.rb init之后 ,检查文件中是否获得了正确的ruby版本,如果未在程序文件中指定正确的ruby版本,则尝试运行ruby dk.rb install安装完成后将devkit安装并您可以安装所需的gem。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM