Error installing gem: Couldn't reserve space for cygwin's heap, Win32 error 487
I was facing the exact same issue and after making a lot of searches and many different tries, this is what fixed it for me:
Download
rebase
from http://www.tishler.net/jason/software/rebase/ (download the latest *.exe version) and run it.Fire up a Prompt ("Run as administrator") and go to your
dev-kit
folder (for instance, mine wasC:\Programs\dev_kit
)While in the dev-kit folder, run
devkitvars.bat
to add devkit to the path.Now do a
cd bin
(it got me toC:\Programs\dev_kit\bin
) and from there run:rebase -b 0x30000000 msys-1.0.dll
Try to install the gems again. Instead of seeing an error message, now you should see Building native extensions. This could take a while...
and it will hang for a while there.
Your gem should be successfully installed after a couple of minutes/seconds. No more headaches :)
Git Extensions: Win32 error 487: Couldn't reserve space for cygwin's heap, Win32 error 0
Cygwin uses persistent shared memory sections, which can on occasion become corrupted. The symptom of this is that some Cygwin programs begin to fail, but other applications are unaffected. Since these shared memory sections are persistent, often a system reboot is needed to clear them out before the problem can be resolved.
Ruby on Rails bundle install Couldn't Reserve Space for Cygwin's heap
Ruben Barbosa's comment seems to be a valid solution. At least for me, and some other users in duplicate questions... So:
Reboot the maching. Cygwins uses persistent shared memory sections,
which can on occasion become corrupted.
Installing Puma on windows VirtualAlloc pointer is null
As stated on this answer, https://stackoverflow.com/a/18503369/2355163, a reboot
of the PC solved the issue.
Chef/Knife running two environments on same machine
The tool you are looking for is knife-flip by John Cowie from Etsy:
$ knife node flip mynode.foo.com myenv [--preview]
Fail to install mysql on cygwin, No curses/termcap library found
I ran into the same issue.
Run cygwin setup (http://www.cygwin.com/setup.exe) and then in the dialog search for libncurses. Choose the appropriate one and install it. Also search for libtermcap and install it.
That should fix this.
Related Topics
Native Extensions Fallback to Pure Ruby If Not Supported on Gem Install
Postgres Range Fields + Rails Forms
Xpath to Find All Following Siblings Up Until the Next Sibling of a Particular Type
How to Use Rails 5.1.0 and Jquery
Collecting Hashes into Openstruct Creates "Table" Entry
Rvm: How to Use Gems from a Different Ruby
Advice on Using Modules with Ruby on Rails
Passing Binding or Arguments to Erb from the Command Line
Trouble Downgrading Ruby on Os X Mavericks
How to Resolve Deprecation Warnings for Openssl::Cipher::Cipher#Encrypt
Ruby Gem Listed, But Won't Load (Gem in User Dir, Not Ruby Dir)
Raise Exception When Accessing Attributes That Doesn't Exist in Openstruct
Rails Pass Params/Arguments to Activerecord Callback Function
Invoke Delayed_Job Capistrano Tasks Only on Specific Servers