Yu-Chieh’s Blog (Y.C. Chang)

Ruby on Rails / Rubygems / FullStack / Git / Mac notes.

How to Install Paperclip for Rails App on Windows

  • If we want to run rails app with paperclip in windows environment, we need to install two package for it.

  • GnuWin32 - http://gnuwin32.sourceforge.net/packages/file.htm

  • ImageMagick binary- http://www.imagemagick.org/download/binaries/

  • Next, we should install the correct static version for your OS (32-bit vs 64-bit) (not dll version)

  • Finnally, we need to add the bin directory to your environment path (in config/environment/development.rb or production.rb) as following lines:

1
2
3
4
...
Paperclip.options[:command_path] = 'C:\Program Files (x86)\GnuWin32\bin; C:\Program Files\ImageMagick-6.7.6-3-Q16'
Paperclip.options[:swallow_stderr] = false
...

Comments