私は私のマシン上でwin32-api
宝石をインストールしようとしているとネイティブ拡張を構築するとき、私はいくつかの問題に直面している:エラー:cygwinのヒープのためのスペースを確保できませんでした、Win32エラー487
$ gem install win32-api --no-ri --rdoc
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
C:\Programs\dev_kit\bin\make.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
ERROR: Error installing win32-api:
ERROR: Failed to build gem native extension.
c:/Programs/ruby/bin/ruby.exe extconf.rb
checking for strncpy_s()... no
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:\Programs\dev_kit\bin\make.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
このjsonやwin32-apiなどのネイティブ拡張をコンパイルしようとするgemをインストールすると問題が発生します。
私はすでにこのマシンの仮想メモリのサイズを変更しようとしましたが、動作しませんでした。
マイ設定:
- Rubyのバージョン:1.8.7p371
- 宝石のバージョン:1.8.24
- バッシュ3.1.0
- 開発キット4.5.2
- のWindows 7のx64
この質問で将来の人が落ちてもそれほど重大ではない場合は、まずリブートを試みてください。私はアンインストール/再インストールと同じエラーに来て終わった... 1再起動、すべて修正されました。もう一つの同様の質問:http://stackoverflow.com/questions/18502999/git-extensions-win32-error-487-couldnt-reserve-space-for-cygwins-heap-win32/31970708#31970708 –