Project

General

Profile

Resolved - Getting rmagick to work on CentOS with cPanel

Added by marco deluca almost 12 years ago

Not sure if anyone else is having this issue, but I've been running redmine on a dedicated server on centos with cpanel and have had a lot of troubles getting rmagick to work. Here's how I finally got things working. There were a couple layers of problems I went through.

The first was getting rmagick installed. gem install rmagick gave lots of errors, so I followed posts online about how to get rmagick installed on centos 5.x After getting rmagick installed on its own, the next issue was with imagemagick. It was trickier because rmagick looked like it's installed ( bundle show had rmagick-2.13.1) listed, but redmine wasn't recognizing the gem as being available.

So if you are able to get rmagick installed but it still isn't working with redmine, this might help:

1. Get the latest version of ImageMagick - assuming you have root access to your server:

cd /usr/local/src
wget http://imagemagick.mirrorcatalogs.com/ImageMagick-6.7.9-4.tar.gz
tar -xzvf ImageMagick-6.7.9-4.tar.gz
cd ImageMagick-6.7.9-4
./configure --prefix=/usr/local --libdir=/usr/lib64 --with-libdir=lib64
make
make install

Then navigate to your redmine installation and do this from BASH ( note this command only works from Bash. do echo $SHELL to figure out what shell you're using and figure out how to use Bash if you're not already )

Now, gem uninstall rmagick
and then finally run this:

C_INCLUDE_PATH=/usr/local/src/ImageMagick-6.7.9-4 bundle install --without test development postgresql

( or whatever your --without requirements are )