0

さて、WindowsXP上のDevKitでかなり基本的なRuby1.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.

手動でインストールしてみましたが、古いバージョンがいくつかありますが、サイコロはありません。また、問題が発生した場合に備えて、開発キットをRubyInstaller.orgの最新バージョンに更新しましたが、運が悪かったのです。

4

1 に答える 1

3

このページを見つけました: http://support.code-red-tech.com/CodeRedWiki/VirtualAllocPointerNullは、一部のインストールで msys.dll のバージョンが機能しないと述べていましたが、添付ファイルに置き換えることで解決しました。

于 2012-08-23T15:27:32.410 に答える