Error Installing Gem: Couldn't Reserve Space for Cygwin's Heap, Win32 Error 487

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:

  1. Download rebase from http://www.tishler.net/jason/software/rebase/ (download the latest *.exe version) and run it.

  2. Fire up a Prompt ("Run as administrator") and go to your dev-kit folder (for instance, mine was C:\Programs\dev_kit)

  3. While in the dev-kit folder, run devkitvars.bat to add devkit to the path.

  4. Now do a cd bin (it got me to C:\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



Leave a reply



Submit