Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

watir gem install error due to mini_magick file w/ special characters

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

like image 712
Matt Pistella Avatar asked May 21 '13 19:05

Matt Pistella


1 Answers

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.

like image 80
ascii78 Avatar answered Oct 01 '22 02:10

ascii78