["

# RMagick 2.13.0 README

\n", "

## 12/23/09

\n", "

### Table of Contents

\n", "

\n", "\t
- Introduction
\n", "\t
- Prerequisites
\n", "\t
- Installing RMagick
\n", "\t
- Configuration Options
\n", "\t
- Things that can go wrong
\n", "\t
- Upgrading
\n", "\t
- Uninstalling
\n", "\t
- More samples
\n", "\t
- Reporting Bugs
\n", "\t
- Contact Information
\n", "\t
- Credits
\n", "\t
- License
\n", "

\n", "

## Introduction

\n", "

RMagick is an interface between the Ruby programming language and the
\n", "ImageMagick image processing library.

\n", "

## Prerequisites

\n", "

O/S Linux, *BSD, OS X, Windows 2000, XP, Vista, other *nix-like systems.

\n", "

Ruby Version 1.8.2 or later. You can get Ruby from www.ruby-lang.org.
\n", "The use of versions of Ruby older than 1.8.4 with RMagick is deprecated. Support will be
\n", "removed in a future release.

\n", "

ImageMagick Version 6.3.0 or later. You can get ImageMagick from www.imagemagick.org.

\n", "

## Installing RMagick

\n", "

First install ImageMagick. Complete and up-to-date instructions for installing
\n", "ImageMagick on Linux, *BSD, and other *nix-type O/S’s are available
\n", "here. Use steps 0, 1, and 2.
\n", "Similarly, instructions for installing ImageMagick using MacPorts on OS X
\n", "are available here. Use steps
\n", "1 and 2.

\n", "

This release of RMagick uses Minero Aoki’s setup.rb script for installation.
\n", "See the next section for configuration options. Usually you do not need to
\n", "specify any of these options. You can get more information about setup.rb from
\n", "his “web site”:<http://i.loveruby.net.

\n", "

I assume you’ve already decompressed the tarball, or you wouldn’t be reading
\n", "this. If you have not decompressed the tarball, do so with one of these commands,
\n", "depending on which tarball you have:

\n", "

    \n", "    tar xvzf RMagick-2.13.0-tar.gz              (gzipped tarball)\n", "    tar xvjf RMagick-2.13.0-tar.bz2             (bzipped tarball)\n", "    7z e RMagick-x.y.z.tar.lzma -so | tar xv    (7zipped tarball)\n", "

\n", "

Change to the RMagick-2.13.0 directory. If you are not using any
\n", "configuration options (usually you don’t need to) enter the command

\n", "

    \n", "   ruby setup.rb\n", "

\n", "

Note that setup.rb executes all the example programs, so this can take
\n", "some time. This process both builds the example images used in the
\n", "documentation and validates your RMagick installation.

\n", "

After this command completes, make sure you have root privileges (that
\n", "is, login as root or use su or sudo) and enter the command

\n", "

    \n", "    ruby setup.rb install\n", "

\n", "

## Configuration options

\n", "

Type `ruby setup.rb --help` to see a list of configuration options. In
\n", "addition to the regular options, there are a few RMagick-specific options:

\n", "

#### —doc-dir=directory

\n", "

Specify the directory to install the RMagick documentation.
\n", "By default this is $prefix/share/RMagick, where $prefix is the
\n", "prefix specified by —prefix. For example, to install the
\n", "documentation in /Users/me/RMagick, specify:

\n", "

    \n", "    ruby setup.rb --doc-dir=/Users/me/RMagick\n", "

\n", "

#### —allow-example-errors

\n", "

Normally the documentation installation terminates if 5 examples fail.
\n", "If you use this option, the installation does not check for failing
\n", "examples and will always complete. This option is useful if you’re
\n", "having trouble installing RMagick and you want to see all the failing examples.

\n", "

#### — disable-htmldoc

\n", "

By default the install process runs all the RMagick example programs and
\n", "generates HTML versions of all the examples. This option causes the
\n", "install process to skip this step. No install verification will take
\n", "place and no documentation will be installed.

\n", "

## Things that can go wrong

\n", "

The RMagick installation FAQ
\n", "has answers to the most commonly reported problems.

\n", "

#### Can’t install RMagick. Can’t find libMagick or one of the dependent libraries. Check the mkmf.log file for more detailed information.

\n", "

Typically this message means that one or more of the libraries that ImageMagick
\n", "depends on hasn’t been installed. Examine the mkmf.log file in the ext/RMagick
\n", "subdirectory of the installation directory for any error messages. These messages
\n", "typically contain enough additional information for you to be able to diagnose
\n", "the problem. Also see this FAQ.

\n", "

#### Cannot open shared object file

\n", "

If you get a message like this:

\n", "

    \n", "    $DIR/RMagick.rb:11:in `require': libMagick.so.0:\n", "      cannot open shared object file: No such file or directory -\n", "      $DIR/RMagick2.so (LoadError)\n", "

\n", "

you probably do not have the directory in which the ImageMagick library
\n", "is installed in your load path. An easy way to fix this is to define
\n", "the directory in the LD_LIBRARY_PATH environment variable. For
\n", "example, suppose you installed the ImageMagick library libMagick.so in
\n", "/usr/local/lib. (By default this is where it is installed.) Create the
\n", "LD_LIBRARY_PATH variable like this:

\n", "

    \n", "        export LD_LIBRARY_PATH=/usr/local/lib\n", "

\n", "

On Linux, see `ld(1)` and `ld.so(8)` for more information. On other operating
\n", "systems, see the documentation for the dynamic loading facility.

\n", "

#### No such file or directory – “/tmp/rmagick6872.6”

\n", "

When setup.rb is running the examples, if you get a message like this:

\n", "

    \n", "    hook /home/me/src/RMagick-2.13.0/./post-setup.rb failed:\n", "    No such file or directory - \"/tmp/rmagick6872.6\"\n", "

\n", "

you probably do not have a temporary directory environment variable set. Set
\n", "the TMPDIR environment variable to your temporary directory. For example:

\n", "

    \n", "    export TMPDIR=/home/me/tmp\n", "

\n", "

## Upgrading

\n", "

If you upgrade to a newer release of ImageMagick, make sure you’re using a
\n", "release of RMagick that supports that release. It’s safe to install a new
\n", "release of RMagick over an earlier release.

\n", "

## Uninstalling

\n", "

The uninstall.rb script will uninstall RMagick completely. Make sure you
\n", "have administrator priviledges. Then run this command:

\n", "

    \n", "    ruby uninstall.rb\n", "

\n", "

## More samples

\n", "

You can find more sample RMagick programs in the /example directory.
\n", "These programs are not installed in the RMagick documentation tree.

\n", "

## Reporting bugs

\n", "

Please report bugs in RMagick, its documentation, or its installation
\n", "programs to me via the bug tracker on the RMagick project page.
\n", "However, I can’t help with Ruby installation and configuration or ImageMagick
\n", "installation and configuration. Information about reporting problems and
\n", "getting help for ImageMagick is available at the ImageMagick web site
\n", "or the ImageMagick Forum.

\n", "

## Contact Information

\n", "

Author: Tim Hunter, Omer Bar-or, Benjamin Thomas

\n", "

Email: rmagick@rubyforge.org

\n", "

Web site: http://rmagick.rubyforge.org

\n", "

## Credits

\n", "

Thanks to ImageMagick Studio LLC for ImageMagick
\n", "and for hosting the RMagick documentation.

\n", "

## License

\n", "

    \n", "Copyright &copy; 2002-2009 by Timothy P. Hunter\n", "\n", "Changes since Nov. 2009 copyright &copy; by Benjamin Thomas and Omer Bar-or\n", "\n", "Permission is hereby granted, free of charge, to any person obtaining a\n", "copy of this software and associated documentation files (the \"Software\"),\n", "to deal in the Software without restriction, including without limitation\n", "the rights to use, copy, modify, merge, publish, distribute, sublicense,\n", "and/or sell copies of the Software, and to permit persons to whom the\n", "Software is furnished to do so, subject to the following conditions:\n", "\n", "The above copyright notice and this permission notice shall be included in\n", "all copies or substantial portions of the Software.\n", "\n", "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL\n", "THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n", "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n", "DEALINGS IN THE SOFTWARE.\n", "

\n", "

\n", "

This file is marked up using Textile and converted
\n", "to HTML with RedCloth.

\n"]