• Download Imagemagick binaries from here

  • open a terminal and run ‘tax xvzf ImageMagick-x.x-x’

  • You will now have the untarred file, but not in the right location. I suggest installing it in /usr/local/imagemagick. So from your shell, do ‘sudo mkdir /usr/local/imagemagick’. This assumes that you are in the sudoers list

  • You will need to update your path so that the binaries are picked up. If you are using bash, go to your home directory and open .bashrc, and add this line:

  • export PATH=/usr/local/imagemagick/bin:${PATH}
     


  • gem install paperclip

  • create paperclip.rb in config/environments of your rails project. Add these lines:
  • Paperclip.options[:command_path] = "DYLD_LIBRARY_PATH='/usr/local/imagemagick/lib' /Users/sram/Downloads/ImageMagick-6.6.5/bin"
    Paperclip.options[:magick_home] = '/usr/local/imagemagick'
    


  • Restart your server, you should be good to go. Use Jim Neath’s excellent tutorial to use paperclip

 

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>