10

I have been trying to install the watir gem for ruby 2. I followed the watir books install instructions exactly but once the watir install get to the mini_magick gem it gives this error

ERROR: While executing gem ... (Errno::EINVAL) Invalid argument - C:/Ruby200/lib/ruby/gems/2.0.0/gems/mini_magick-3.6.0/tes t/files/special! "chars'.gif

Anyone know how to get around this? I noticed that nokogiri was acting kind of weird being unable to convert from ASCII to ITF-8. Maybe this has something to do with it. Thanks y'all

Chris
  • 5,584
  • 9
  • 40
  • 58
Matt Pistella
  • 127
  • 1
  • 8

1 Answers1

25

I ran into same problem and here was my solution to work around it. The problem seems to be in the new 3.6.0 version, so back out the new version and install the previous version.

gem uninstall mini_magick
gem install mini_magick -v 3.5.0

After installing 3.5.0 mini_magick gem, rerun the watir gem install. It should find the mini_magick gem already installed and skip over it and install the remaining gems successfully. Good luck.

Chuck van der Linden
  • 6,660
  • 2
  • 28
  • 43
ascii78
  • 266
  • 3
  • 2
  • 2
    Yep and I really do not understand why is there so many gem that do not install without chose under-version – cz3ch Jul 23 '13 at 14:51
  • The problem is also mentiond in the mini_magick issue: https://github.com/minimagick/minimagick/issues/145 – Jarmo Pertman Sep 17 '13 at 19:42