Installing rails and its dependencies always painfull in windows, thankfully to railsinstaller or rubyinstaller but here i want show how install ruby, rails and rmagick based on my experience:
-
First install rails FTW, its like railsinstaller but at least more latest ruby and rails than railsinstaller. Its contain ruby 2.0.0-p481 32bit and rails 4.1.1
-
In here you've got ruby 2.0.0 and rails 4.1.1 installed in your system. Open your cmd and type ruby -v and rails -v to make sure ruby on rails installed properly.
-
Download Devkit 4.7.2 32bit
-
Download ImageMagick-6.7.9-9-Q16-windows-dll.exe install on C:/imagemagick
-
from cmd configure devkit stuff, with cd devkit, devkitvars.bat, ruby dk.rb install -f
-
cd to c:\imagemagick
-
And finally you can install rmagick gem using command prompt:
gem install rmagick --verbose -- --with-opt-lib=lib --with-opt-include=include
-
or if step 5 to 7 doesn't work, please goto devkit dir, execute mysys.bat, and from mysys console
gem install rmagick --verbose -- --with-opt-dir=C:\imagemagick
Well from above steps finally i was successfully install ruby 2.0.0-p481, rails 4.1.1 and rmagick 2.13.2