Ruby(RoR) Tip5: Install jrails; Avoid Plugin Not Found in Windows

30 sec read

If you are using MinGW version of Ruby and trying to install plugins like jrails or paperclip, then you might face with the problem “Plugin not found” even after correctly following the instruction.
Here is the solution for it.

  • Go to your ruby installation directory
  • now go to \lib\ruby\gems\1.8\gems\activesupport-2.X.X\lib\active_support\core_ext\kernel\reporting.rb [X.X should point to your latest version of active support gem
  • Change stream.reopen(RUBY_PLATFORM =~ /mswin/ ? ‘NUL:’ : ‘/dev/null’) to stream.reopen(‘NUL:’)
  • Now if you try to install plugins like jrails, it will simply work

Basically, Ruby is suppose to return NUL: instead of mswin32, but it doesn’t, and thats what you corrected right now.
This won’t happen if you have installed the MSWin32 version of Ruby.
Thanks to Ahmed for this useful suggestion.

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *