1.grab the ImageMagick.tar.gz
ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
2.Unarchive it:
tar xvzf ImageMagick.tar.gz
3.
cd ImageMagick-6.3.8 "Or whichever the current version is, of course."
./configure
make (wait~~~)
sudo make install
4.
convert -version
5.download rmagick-2.2.2.gem
http://files.rubyforge.mmmultiworks.com/rmagick/rmagick-2.2.2.gem
6.install rmagick:
sudo gem install rmagick-2.2.2.gem
another problem:
After install rmagick, the page shows :
"libMagickWand.so.1: cannot open shared object file: No such file or directory - libMagickWand.so.1: cannot open shared object file: No such file or directory - /var/lib/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so"
That means can not find "RMagick2.so" in the lib file ,so we need to link it with "/usr/lib$ sudo ln -s /usr/local/lib/libMagickWand.so.1".

