Skip to content
vikhyat edited this page Jan 25, 2012 · 15 revisions

Gem installation

This is the recommended approach for using Paperclip. In your config/environment.rb, add:

config.gem 'paperclip', :source => 'http://rubygems.org'

Alternatively it is possible to add gem "paperclip", "~> 2.0" to the Gemfile.

Then run:

rake gems:install
rake gems:unpack

Plugin installation

You can use paperclip as a plugin as well like so:

script/plugin install git://github.com/thoughtbot/paperclip

Dependencies

Only ImageMagick, which you can install quite easily install via apt, yum, or port, or the package manager of your choice. (If you are on a Mac, try downloading the binary release from imagemagick.org, or this shell script will make installing ImageMagick very easy, or you can try HomeBrew with brew install imagemagick.

If you plan on using any post-processing with ImageMagick, it requires ghostscript for pdf files. It is not always installed as a dependancy with ImageMagick through package management, so depending on your environment, you might need to install it separately.