Search code examples
ruby-on-railsimagemagickpaasopenshift

ImageMagick devel package on Red Hat Open Shift


I need ImageMagick with my RoR app, because I use rmagick and carrierwave gems for editing images. How can I install it on Open Shift?


Solution

  • EDIT:

    If you access to the ssh you can see the machine comes already with ImageMagick:

    [blog-fdiazgarrido.rhcloud.com ~]\> convert --version
    Version: ImageMagick 6.5.4-7 2010-02-26 Q16 OpenMP http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
    

    So the only thing you have to do is include it in your Gemfile, and it will be picked up like all the other gems



    You have to use first the library with:

    up2date install ImageMagick
    

    or

    yum install ImageMagick
    

    if you are using yum

    And finally install the gem like

    sudo gem install rmagick
    

    Or including it on your Gemfile and running bundle