Installation

Prerequisites

Ruby

MagickWand for Ruby works with Ruby 1.8.6, 1.8.7, and 1.9.1.

Compiler tools

You need compiler tools such as gcc and make. On Ubuntu systems these are part of the build-essential package.

ImageMagick

MagickWand for Ruby requires ImageMagick version 6.5.0 or later. You can install ImageMagick from a package built for your operating system (make sure it’s new enough!), or you can download the source code here. You can read about how to configure and install ImageMagick from source here.

Header files

MagickWand for Ruby is a compiled extension that is configured and built for your specific system. Therefore you need the header files for Ruby and ImageMagick. The header files may be part of a separate package. For example, on Ubuntu the ImageMagick header files are in the libmagick9-dev package.

Delegate libraries

ImageMagick typically relies on delegate libraries to support most image formats. Only GIF support is built in. Although MagickWand for Ruby does not require any specific delegate libraries, most users will want to install the delegate libraries for JPEG (libjpg) and PNG (libpng) image formats, and for TrueType fonts (freetype). Other delegate libraries include Ghostscript for PDF, Postscript, and EPS format files, support for EXIF metadata (libexif), and support for SVG (librsvg). These delegates are usually available as packages or you can get the source for these libraries from the ImageMagick FTP server.

Hint

Install ImageMagick 6.5.0 or later as if for RMagick. Google is a wonderful resource. Search rmagick install my-os where my-os is your operating system, such as ubuntu or os x. Then install the magickwand gem.

Installation

After installing ImageMagick, the delegate libraries, and the ImageMagick header files, install MagickWand for Ruby using the gem command:

gem install magickwand

site info

© 2009 Timothy P. Hunter | Generated by webgen | Design by Andreas Viklund.