I just installed ruby 1.8.7 on a Windows machine and when I started IRB I got this error:
ruby.exe Unable To Locate Component readline.dll
The fix:
- Download the readline binary zip from here.
- Unzip the file.
- Change directory to the new directory created by unzipping the file.
- Change directory to the bin directory.
- Copy the readline5.dll file.
- Change directory to your ruby/bin directory (for me this is C:\ruby\bin).
- Paste readline5.dll file there.
- Rename file readline.dll.
As long as your rubybin directory is set in your PATH environment variable, that should take care of the problem.