【问题标题】:JSON Gem fails to build on WindowsJSON Gem 无法在 Windows 上构建
【发布时间】:2012-08-23 15:10:03
【问题描述】:

好的,在 Windows XP 上使用 DevKit 安装了一个非常基本的 Ruby 1.9.3。

当我尝试执行 rails new myapp 时,它会安装 json 并死掉。

Installing json (1.7.5) with native extensions C:\devkit\bin\make.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

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

make
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60E90000, RegionSize 0x170000, State 0x10000
C:\devkit\bin\make.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7.5 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7.5/ext/json/ext/generator/gem_make.out
An error occured while installing json (1.7.5), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.5'` succeeds before bundling.

我尝试手动安装和几个旧版本,但没有骰子。还将我的 devkit 更新到 RubyInstaller.org 的最新版本,以防万一出现问题,但也没有运气

【问题讨论】:

标签: ruby-on-rails windows gem cygwin


【解决方案1】:

我找到了这个页面:http://support.code-red-tech.com/CodeRedWiki/VirtualAllocPointerNull,上面说msys.dll的版本在某些安装中不起作用,但是替换为附件解决了我的问题。

【讨论】:

    猜你喜欢
    • 2011-09-16
    • 1970-01-01
    • 2017-11-02
    • 1970-01-01
    • 2014-12-04
    • 1970-01-01
    • 1970-01-01
    • 2014-10-25
    • 1970-01-01
    相关资源
    最近更新 更多