October 04, 2006

Ruby on Cygwin error (*** unable to remap)

I had an annoying issue occuring when running Ruby under Cygwin. The error was reproducable every time that I attempted to run the ri command.

C:\cygwin\lib\ruby\1.8\i386-cygwin\readline.so to same address as parent(0x370000) != 0x2760000
C:\cygwin\bin\ruby.exe (3132): *** unable to remap C:\cygwin\lib\ruby\1.8\i386-cygwin\readline.so to same address as parent(0x370000) != 0x2760000

I was finally able to resolve the issue with the following steps:

  1. exit from cygwin

  2. enter the dos command prompt

  3. cd to you cygwin bin directory (c:\cygwin\bin)

  4. run ash rebaseall

  5. restart cygwin ... problem solved

3 comments:

Xin said...

Thank you so much! I had the exact issue, and this solved it perfectly.

Michael Ward said...

I'm glad it helped

Lonnie said...

Thank you ever so much. I've had to rebase in Cygwin before, but I can never remember how. Your article was the first thing that came up when I googled "cygwin ruby unable to remap," so you were there when I needed you to be. Thanks again!