Error installing gem: Couldn't reserve space for cygwin's heap, Win32 error 487

前端 未结 1 1126
轮回少年
轮回少年 2021-02-04 19:33

I\'m trying to install win32-api gem on my machine and I\'m facing some issues when building native extensions:

$ gem install win32-api --no-ri --rd         


        
相关标签:
1条回答
  • 2021-02-04 19:35

    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 :)

    0 讨论(0)
提交回复
热议问题