Archives
Tags
- General (18)
- Food (1)
- Cooking (1)
- Ruby (6)
- Rails (2)
- Svn (2)
- Linux (9)
- Git (1)
- Firefox (8)
- Porn (1)
- Freyja (1)
- Witchhammer (6)
- Music (1)
- Merb (3)
- Poetry (0)
- Bolverk (3)
- Sinatra (1)
- Discogs (1)
- Centos (1)
- Python (1)
- Whinging (2)
- Travel (2)
- Scheme (7)
- Lisp (8)
- Sicp (1)
- Rot13 (1)
- Czech (2)
- Metal (3)
- Passenger (1)
- Fun (5)
- Fractals (2)
- Plt (2)
- Clojure (1)
- Continuations (1)
- Javascript (1)
- Presentation (1)
ImageMagick and RMagick on Centos 5.3
Installing ImageMagick + RMagick seems to be a common source of problems. Here is my eventual solution.
I must admit, I'm not a huge fan of yum. And this latest experience has not helped my disposition. There is an ImageMagick(-devel) package in the repository, but it's very old now requires an earlier version of RMagick. I also found that it didn't work with the FileColumn Rails plugin ("Invalid image" error).
I recommend, for CentOS 5.x atleast, that you build ImageMagick from source.
0) Install all the dependencies (yum should be fine for these):
1) Grab ImageMagick and unpack it
$ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz $ tar xvzf ImageMagick.tar.gz $ cd ImageMagick-x.x.x
2) Compile and install ImageMagick. Note, these are the flags I used for my own server. Use --help to see a full list of the options.
$ ./configure --prefix=/usr --disable-static --with-modules --without-magick-plus-plus --with-quantum-depth=8 $ make $ sudo make install
3) Play the waiting game. Or you can have a sword fight with an employee. :)
4) Install the latest version of the RMagick gem
$ sudo gem install rmagick
5) For good measure, open up IRB and see if it's installed correctly.
$ irb > require 'RMagick' > true
Good luck in your adventures, people.