Leopardにmacportsでphp5をインストール

$ sudo port install php5 +postgresql +apache2 +pear
--->  Fetching curl
--->  Attempting to fetch curl-7.18.2.tar.bz2 from http://curl.haxx.se/download/
--->  Verifying checksum(s) for curl
--->  Extracting curl
--->  Configuring curl
--->  Building curl with target all
--->  Staging curl into destroot
--->  Installing curl 7.18.2_0
--->  Activating curl 7.18.2_0
--->  Cleaning curl
--->  Fetching gd2
--->  Attempting to fetch gd-2.0.35.tar.bz2 from http://www.libgd.org/releases/
--->  Verifying checksum(s) for gd2
--->  Extracting gd2
--->  Applying patches to gd2
--->  Configuring gd2
--->  Building gd2 with target all
--->  Staging gd2 into destroot
--->  Installing gd2 2.0.35_1
--->  Activating gd2 2.0.35_1
--->  Cleaning gd2
--->  Fetching libmcrypt
--->  Attempting to fetch libmcrypt-2.5.8.tar.bz2 from http://downloads.sourceforge.net/mcrypt
--->  Verifying checksum(s) for libmcrypt
--->  Extracting libmcrypt
--->  Configuring libmcrypt
--->  Building libmcrypt with target all
--->  Staging libmcrypt into destroot
--->  Installing libmcrypt 2.5.8_0
--->  Activating libmcrypt 2.5.8_0
--->  Cleaning libmcrypt
--->  Fetching mhash
--->  Attempting to fetch mhash-0.9.9.tar.bz2 from http://downloads.sourceforge.net/mhash
--->  Verifying checksum(s) for mhash
--->  Extracting mhash
--->  Configuring mhash
--->  Building mhash with target all
--->  Staging mhash into destroot
--->  Installing mhash 0.9.9_0
--->  Activating mhash 0.9.9_0
--->  Cleaning mhash
--->  Fetching php5
--->  Attempting to fetch php-5.2.6.tar.bz2 from http://www.php.net/distributions/
--->  Verifying checksum(s) for php5
--->  Extracting php5
--->  Configuring php5
--->  Building php5 with target all
--->  Staging php5 into destroot
Warning: php5 requests to install files outside the common directory structure!
--->  Installing php5 5.2.6_1+apache2+macosx+pear
If this is your first install, you might want
cd /opt/local/apache2/modules
/opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
* copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini
--->  Activating php5 5.2.6_1+apache2+macosx+pear
--->  Cleaning php5

variantsの+postgresqlが間違ってた。
variantsを確認。

$ port variants php5
php5 has the variants:
	universal
	darwin_6
	darwin_7
	macosx
	apache: for Apple Apache
	apache2: for current Apache
	fastcgi: add fastcgi binary
	gmp: Add GNU MP functions
	dbase: Add dBase file format support
	imap: enable operation with IMAP protocol
	pspell: Add pspell spell-checking functions
	tidy: add Tidy support
	mssql: add support for MS-SQL server
	snmp: use Apple snmp
	macports_snmp: use MacPorts snmp
	mysql3: build MySQL 3 support
	mysql4: build MySQL 4 support
	mysql5: build MySQL 5 support
	oracle: Add Oracle oci8 database functions with the Oracle Instant Client
	postgresql82: provide postgresql82 support
	postgresql83: provide postgresql83 support
	sqlite: build sqlite support
	ipc: build IPC support
	pcntl: provide process control
	pear: add pear stuff
	readline: Add GNU readline functions
	sockets: Add socket communication functions
	t1lib: Add PostScript Type 1 font support with t1lib

正しくは、+postgresql83。
改めてインストール。ついでにmysql5とsqliteを追加。(MySQL5を先にインストールしておく。)

$ sudo port install php5 +postgresql83 +mysql5 +sqlite +apache2 +pear
--->  Fetching mysql5
--->  Attempting to fetch mysql-5.0.67.tar.gz from http://distfiles.macports.org/mysql5
--->  Verifying checksum(s) for mysql5
--->  Extracting mysql5
--->  Configuring mysql5
--->  Building mysql5 with target all
--->  Staging mysql5 into destroot
--->  Installing mysql5 5.0.67_0
--->  Activating mysql5 5.0.67_0
--->  Cleaning mysql5
--->  Fetching php5
--->  Verifying checksum(s) for php5
--->  Extracting php5
--->  Configuring php5
--->  Building php5 with target all
--->  Staging php5 into destroot
Warning: php5 requests to install files outside the common directory structure!
--->  Installing php5 5.2.6_1+apache2+macosx+mysql5+pear+postgresql83+sqlite
If this is your first install, you might want
cd /opt/local/apache2/modules
/opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
* copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini
--->  Activating php5 5.2.6_1+apache2+macosx+mysql5+pear+postgresql83+sqlite
Error: Target org.macports.activate returned: Image error: Another version of this port (php5 @5.2.6_1+apache2+macosx+pear) is already active.
Error: Status 1 encountered during processing.

最初のインストールが残っていたので、activateできなかったみたい。
いったんアンインストールしてインストールしなおす。

$ sudo port uninstall php5
--->  The following versions of php5 are currently installed:
--->  	php5 @5.2.6_1+apache2+macosx+mysql5+pear+postgresql83+sqlite
--->  	php5 @5.2.6_1+apache2+macosx+pear (active)
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.

php5が複数あるからフルで指定しないとアンインストールできないらしい。

$ sudo port uninstall php5 @5.2.6_1+apache2+macosx+pear
--->  Deactivating php5 5.2.6_1+apache2+macosx+pear
--->  Uninstalling php5 5.2.6_1+apache2+macosx+pear

アンインストールできたので、インストールしなおす。

$ sudo port install php5 +postgresql83 +mysql5 +sqlite +apache2 +pear
--->  Activating php5 5.2.6_1+apache2+macosx+mysql5+pear+postgresql83+sqlite
--->  Cleaning php5

インストールは終わっていたようで、activateだけされた。
インストール時のメッセージにある通り、apxsでapacheにphp5モジュールを追加する。

$ cd /opt/local/apache2/modules/
$ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
Password:
[activating module `php5' in /opt/local/apache2/conf/httpd.conf]

添付されているサンプルからphp.iniをコピー。

$ sudo cp /opt/local/etc/php.ini-dist /opt/local/etc/php.ini

/opt/local/apache2/conf/httpd.confに以下を追加。

Include conf/extras-conf/mod_php.conf

Leopardにmacportsでapache2をインストール

$ sudo port install apache2
Password:
--->  Fetching pcre
--->  Attempting to fetch pcre-7.7.tar.bz2 from ftp://ftp.fu-berlin.de/unix/misc/pcre/
--->  Verifying checksum(s) for pcre
--->  Extracting pcre
--->  Configuring pcre
--->  Building pcre with target all
--->  Staging pcre into destroot
--->  Installing pcre 7.7_0
--->  Activating pcre 7.7_0
--->  Cleaning pcre
--->  Fetching apache2
--->  Attempting to fetch httpd-2.2.9.tar.bz2 from http://www.apache.org/dist/httpd
--->  Verifying checksum(s) for apache2
--->  Extracting apache2
--->  Configuring apache2
--->  Building apache2 with target all
--->  Staging apache2 into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting apache2 with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
###########################################################
Warning: apache2 requests to install files outside the common directory structure!
--->  Installing apache2 2.2.9_1+darwin_9
--->  Activating apache2 2.2.9_1+darwin_9
--->  Cleaning apache2

メッセージにある通り、自動起動を設定。

$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist

httpd.confを添付されているサンプルからコピーする。

$ sudo cp /opt/local/apache2/conf/httpd.conf.sample /opt/local/apache2/conf/httpd.conf

apachectlなどへのパスを通すため、.bash_profileなどで$PATHに
/opt/local/apache2/bin
を追加しておく。

LeopardにmacportsでPostgreSQL8.3をインストール

postgresql83をインストール。

$ sudo port install postgresql83
Password:
--->  Fetching bison
--->  Attempting to fetch bison-2.3.tar.bz2 from http://ftp.gnu.org/gnu/bison
--->  Verifying checksum(s) for bison
--->  Extracting bison
--->  Configuring bison
--->  Building bison with target all
--->  Staging bison into destroot
--->  Installing bison 2.3_2
--->  Activating bison 2.3_2
--->  Cleaning bison
--->  Fetching libxslt
--->  Attempting to fetch libxslt-1.1.23.tar.gz from ftp://xmlsoft.org/libxslt/
--->  Verifying checksum(s) for libxslt
--->  Extracting libxslt
--->  Configuring libxslt
--->  Building libxslt with target all
--->  Staging libxslt into destroot
--->  Installing libxslt 1.1.23_0
--->  Activating libxslt 1.1.23_0
--->  Cleaning libxslt
--->  Fetching ossp-uuid
--->  Attempting to fetch uuid-1.6.1.tar.gz from ftp://ftp.ossp.org/pkg/lib/uuid/
--->  Verifying checksum(s) for ossp-uuid
--->  Extracting ossp-uuid
--->  Applying patches to ossp-uuid
--->  Configuring ossp-uuid
--->  Building ossp-uuid with target all
--->  Staging ossp-uuid into destroot
--->  Installing ossp-uuid 1.6.1_0
--->  Activating ossp-uuid 1.6.1_0
--->  Cleaning ossp-uuid
--->  Fetching postgresql83
--->  Attempting to fetch postgresql-8.3.3.tar.bz2 from http://ftp8.de.postgresql.org/pub/misc/pgsql//source/v8.3.3/
--->  Verifying checksum(s) for postgresql83
--->  Extracting postgresql83
--->  Configuring postgresql83
--->  Building postgresql83
--->  Staging postgresql83 into destroot
--->  Installing postgresql83 8.3.3_0
To use the postgresql server, install the postgresql83-server port
--->  Activating postgresql83 8.3.3_0
--->  Cleaning postgresql83

メッセージにある通り、postgresql83-serverをインストール。

$ sudo port install postgresql83-server
Password:
--->  Fetching postgresql83-server
--->  Verifying checksum(s) for postgresql83-server
--->  Extracting postgresql83-server
--->  Configuring postgresql83-server
--->  Building postgresql83-server with target all
--->  Staging postgresql83-server into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting postgresql83-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql83-server.plist
###########################################################
--->  Installing postgresql83-server 8.3.3_0
To create a database instance, after install do
 sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb
 sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
 sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'
To tweak your DBMS, consider increasing kern.sysv.shmmax by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf
--->  Activating postgresql83-server 8.3.3_0
--->  Cleaning postgresql83-server

メッセージにある通り、自動起動を設定して、データベースを作成。

$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql83-server.plist
$ sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb
$ sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
$ sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale ja_JP.UTF-8.
The default database encoding has accordingly been set to UTF8.
initdb: could not find suitable text search configuration for locale ja_JP.UTF-8
The default text search configuration will be set to "simple".
fixing permissions on existing directory /opt/local/var/db/postgresql83/defaultdb ... ok
creating subdirectories ... ok
selecting default max_connections ... 20
selecting default shared_buffers/max_fsm_pages ... 2400kB/20000
creating configuration files ... ok
creating template1 database in /opt/local/var/db/postgresql83/defaultdb/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.
Success. You can now start the database server using:
    /opt/local/lib/postgresql83/bin/postgres -D /opt/local/var/db/postgresql83/defaultdb
or
    /opt/local/lib/postgresql83/bin/pg_ctl -D /opt/local/var/db/postgresql83/defaultdb -l logfile start

gem install mysql でエラー

CentOS5.1にgemでrubyのMySQL API をインストールした。

$ sudo gem install mysql
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby
        --with-mysql-config
        --without-mysql-config
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-mlib
        --without-mlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-zlib
        --without-zlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-socketlib
        --without-socketlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-nsllib
        --without-nsllib
        --with-mysqlclientlib
        --without-mysqlclientlib
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

MySQL/Rubyを参考にして、--with-mysql-configオプションをつけてみた。

$ sudo gem install mysql --with-mysql-config
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --with-mysql-config

オプションのつけ方間違えた。

$ sudo gem install mysql -- --with-mysql-config
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install mysql -- --with-mysql-config
checking for mysql_ssl_set()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby
        --with-mysql-config
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

mysql-develをインストールする。

$ sudo yum install mysql-devel

改めてインストール。

$ sudo gem install mysql -- --with-mysql-config
Building native extensions.  This could take a while...
Successfully installed mysql-2.7
1 gem installed

OK。

RMagickのインストール

このエントリーでは、ImageMagickをyumでインストールする方法を説明しています。ImageMagickをyumでインストールした場合、バージョンが古いため最新のRMagick(rmagick-2.x.x)がインストールできないし、ソースからインストールした方が楽です。
ImageMagickをソースからインストールする方法は、
CentOSにImageMagickをソースからインストール → RMagickをインストール
をご覧ください。

RMagickをLinux(Fedora5, 6, CentOS5.1)にインストールした。

RAA - rmagick
RMagick Download Page
RMagick

ImageMagickのインストール

ImageMagickがインストールされているかどうかは、convertコマンドが実行できるかどうかでチェックできる。

$ convert logo: logo.gif

これで、logo.gifが作成されれば、インストールされている。
インストールされている場所は、

$ which convert
/usr/bin/convert

でチェック。

ImageMagickをインストール。

$ sudo yum install ImageMagick
$ sudo yum install ImageMagick-devel

RMagickのインストール

$ sudo gem install rmagick
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
	ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install rmagick
checking for Ruby version >= 1.8.2... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.0... no
Can't install RMagick 2.5.2. You must have ImageMagick 6.3.0 or later.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/local/bin/ruby
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.5.2 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.5.2/ext/RMagick/gem_make.out
$ convert --version
Version: ImageMagick 6.2.5 04/05/07 Q16 file:/usr/share/ImageMagick-6.2.5/doc/index.html
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC

ImageMagickのバージョンが6.3.0より下なので、gemで最新のRMagickはインストールできない。
rmagick-1.15.14.gemをダウンロードしてインストール。

$ wget http://rubyforge.org/frs/download.php/36807/rmagick-1.15.14.gem
$ sudo gem install rmagick-1.15.14.gem
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick-1.15.14.gem:
        ERROR: Failed to build gem native extension.
/usr/local/bin/ruby gem_extconf.rb install rmagick-1.15.14.gem
sh configure
Configuring RMagick 1.15.14
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ruby... /usr/local/bin/ruby
checking Ruby version... 1.8.7
checking for Magick-config... Magick-config
checking ImageMagick version... 6.2.5
checking for library containing InitializeMagick... -lMagick
checking for snprintf... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking for AcquireMagickMemory... yes
checking for AcquireStringInfo... yes
checking for AdaptiveBlurImageChannel... no
checking for AdaptiveResizeImage... no
checking for AdaptiveSharpenImage... no
checking for AdaptiveThresholdImage... yes
checking for AddDefinitions... no
checking for AddNoiseImageChannel... yes
checking for AllocateImageProfileIterator... no
checking for BilevelImageChannel... yes
checking for BlackThresholdImage... yes
checking for BlurImageChannel... yes
checking for ClearMagickException... no
checking for CompareImageChannels... yes
checking for CompareImageLayers... no
checking for CompositeImageChannel... no
checking for ContrastStretchImageChannel... no
checking for ConvertHSLToRGB... no
checking for ConvertRGBToHSL... no
checking for ConvolveImageChannel... yes
checking for EvaluateImageChannel... yes
checking for ExportImagePixels... yes
checking for FuzzyColorCompare... yes
checking for FxImageChannel... yes
checking for GammaImageChannel... yes
checking for GaussianBlurImageChannel... yes
checking for GetBlobSize... yes
checking for GetColorHistogram... no
checking for GetColorInfoArray... no
checking for GetColorInfoList... yes
checking for GetImageChannelDepth... yes
checking for GetImageChannelDistortion... yes
checking for GetImageChannelExtrema... yes
checking for GetImageChannelMean... yes
checking for GetImageClipMask... yes
checking for GetImageHistogram... yes
checking for GetImageProfile... yes
checking for GetImageProperty... no
checking for GetImageQuantumDepth... yes
checking for GetImageStatistics... no
checking for GetMagickInfoArray... no
checking for GetMagickPixelPacket... yes
checking for GetMagickInfoList... yes
checking for GetMagickResourceLimit... yes
checking for GetMultilineTypeMetrics... yes
checking for GetNextImageAttribute... yes
checking for GetNextImageProfile... yes
checking for GetTypeInfoList... yes
checking for GrayscalePseudoClassImage... no
checking for ImagesToBlob... yes
checking for ImportImagePixels... yes
checking for InheritException... yes
checking for InterpolatePixelColor... no
checking for InterpretImageAttributes... no
checking for IsColorSimilar... yes
checking for IsImageSimilar... no
checking for LinearStretchImage... no
checking for NegateImageChannel... yes
checking for NormalizeImageChannel... yes
checking for OrderedPosterizeImageChannel... no
checking for ParseSizeGeometry... yes
checking for PolaroidImage... no
checking for PosterizeImage... yes
checking for PreviewImage... yes
checking for QuantumOperatorRegionImage... no
checking for RadialBlurImage... yes
checking for RadialBlurImageChannel... yes
checking for RandomChannelThresholdImage... yes
checking for RandomThresholdImageChannel... yes
checking for RecolorImage... no
checking for RemoveFirstImageFromList... yes
checking for SeparateImageChannel... yes
checking for SepiaToneImage... yes
checking for SetImageBackgroundColor... yes
checking for SetImageChannelDepth... yes
checking for SetImageColorspace... yes
checking for SetImageExtent... yes
checking for SetImageInfoFile... yes
checking for SetImageOption... yes
checking for SetImageProperty... no
checking for SetImageRegistry... no
checking for SetImageStorageClass... no
checking for SetImageProgressMonitor... yes
checking for ShadowImage... yes
checking for SharpenImageChannel... yes
checking for SigmoidalContrastImageChannel... yes
checking for SketchImage... no
checking for SpliceImage... yes
checking for StripImage... yes
checking for ThresholdImageChannel... yes
checking for TintImage... yes
checking for TransposeImage... no
checking for TransverseImage... no
checking for UniqueImageColors... no
checking for UnsharpMaskImageChannel... yes
checking for VignetteImage... no
checking for WhiteThresholdImage... yes
checking for XImportImage... yes
checking for MagickBooleanType... yes
checking for magick_int64_t... no
checking for magick_uint64_t... no
checking for ExtendedSignedIntegralType... yes
checking for ExtendedUnsignedIntegralType... yes
checking for MagickOffsetType... yes
checking for MagickSizeType... yes
checking for MagickPixelPacket... yes
checking for ExceptionInfo.module... no
checking for Image.bias... yes
checking for Image.orientation... yes
checking for Image.quality... yes
checking for Image.ticks_per_second... yes
checking for Image.transparent_color... no
checking for Image.iptc_profile... yes
checking for Image.generic_profile... yes
checking for Image.generic_profiles... yes
checking for ImageInfo.orientation... yes
checking for ImageInfo.channel... yes
checking for Image.extract_info... yes
checking for CineonLogRGBColorspace enum value... no
checking for HSBColorspace enum value... yes
checking for LABColorspace enum value... yes
checking for Rec601LumaColorspace enum value... yes
checking for Rec601YCbCrColorspace enum value... yes
checking for Rec709LumaColorspace enum value... yes
checking for Rec709YCbCrColorspace enum value... yes
checking for LogColorspace enum value... yes
checking for ReplaceCompositeOp enum value... yes
checking for DstCompositeOp enum value... yes
checking for ColorDodgeCompositeOp enum value... yes
checking for IndexChannel enum value... yes
checking for GrayChannel enum value... yes
checking for AllChannels enum value... yes
checking for JPEG2000Compression enum value... yes
checking for UndefinedGravity enum value... yes
checking for QuantumPixel enum value... yes
checking for TransparentVirtualPixelMethod enum value... yes
checking for CoalesceLayer enum value... no
checking for MaxEvaluateOperator enum value... yes
checking for PaletteBilevelMatteType enum value... no
checking if GetImageQuantumDepth has only 1 argument... no
checking if GetColorInfoList has only 2 arguments... no
checking if GetTypeInfoList has only 2 arguments... no
checking if GetMagickInfoList has only 2 arguments... no
checking if RemoveImageProfile returns MagickBooleanType... yes
checking if ColorInfo.color is a MagickPixelPacket... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ext/RMagick/extconf.rb
config.status: creating metaconfig
config.status: creating ext/RMagick/rmagick_config.h
configure:
This installation of RMagick 1.15.14 is configured for ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] and ImageMagick 6.2.5.
RMagick configuration completed successfully.
make
if test -n "/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; then \
        RUBYLIBDIR=--rbdir="/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; \
fi; \
if test -n "/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; then \
        RUBYARCHDIR=--sodir="/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; \
fi; \
/usr/local/bin/ruby setup.rb config $RUBYLIBDIR $RUBYARCHDIR --data-dir=/share
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
/usr/local/bin/ruby /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick/extconf.rb
creating Makefile
<--- ext/RMagick
<--- ext
/usr/local/bin/ruby setup.rb setup
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
make
make[1]: Entering directory `/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick'
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmmain.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rminfo.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmimage.c
rmimage.c: In function 'Image_aref':
rmimage.c:594: 警告: assignment discards qualifiers from pointer target type
rmimage.c: In function 'Image_aset':
rmimage.c:654: 警告: assignment discards qualifiers from pointer target type
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmilist.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmfill.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmdraw.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmutil.c
gcc -shared -o RMagick.so rmmain.o rminfo.o rmimage.o rmilist.o rmfill.o rmdraw.o rmutil.o -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L.  -rdynamic -Wl,-export-dynamic -L/usr/lib -lfreetype -lz -L/usr/lib  -lMagick -ltiff -lfreetype -ljpeg -lgs -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread -ldl -lcrypt -lm   -lc
make[1]: Leaving directory `/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick'
<--- ext/RMagick
<--- ext
setup.rb: entering post-setup phase...
post-setup.rb: setting up documentation...
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick Adispatch.rb (example 1 of 183)
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick InitialCoords.rb (example 2 of 183)
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/verdana.ttf' (Magick::ImageMagickError)
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `render'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:696:in `text'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:65:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:236:in `draw'
        from InitialCoords.rb:22
post-setup.rb: InitialCoords.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick NewCoordSys.rb (example 3 of 183)
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/verdana.ttf' (Magick::ImageMagickError)
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `render'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:696:in `text'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:65:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:236:in `draw'
        from NewCoordSys.rb:31
post-setup.rb: NewCoordSys.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick OrigCoordSys.rb (example 4 of 183)
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/verdana.ttf' (Magick::ImageMagickError)
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `render'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:696:in `text'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:65:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:236:in `draw'
        from OrigCoordSys.rb:17
post-setup.rb: OrigCoordSys.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick PreserveAspectRatio.rb (example 5 of 183)
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/arial.ttf' (Magick::ImageMagickError)
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `render'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:696:in `text'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:65:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:236:in `draw'
        from PreserveAspectRatio.rb:204
post-setup.rb: PreserveAspectRatio.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick RotateScale.rb (example 6 of 183)
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/verdana.ttf' (Magick::ImageMagickError)
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `render'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:696:in `text'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:65:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:236:in `draw'
        from RotateScale.rb:36
setup.rb:             Too many examples failed. Search for "Help!" at
            http://rmagick.rubyforge.org/install-faq.html.
post-setup.rb: RotateScale.rb example returned error code 256
make: *** [all] エラー 1
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/gem_make.ou

`get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/arial.ttf' (Magick::ImageMagickError)
`get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/verdana.ttf' (Magick::ImageMagickError)
フォントがないというエラーらしい。
TRIBLOG
MuraTaka 速記メモ / 2008-07
CentOS4.5にRMagickをインストール - プログラマ 福重 伸太朗 ~基本へ帰ろう~
を参考にして、フォントをインストールして、フォントへのシンボリックリンクを作成する。

http://www.mjmwired.net/resources/mjm-fedora-f7.html#ttf
からフォントのRPMをダウンロードしてインストール。

$ sudo rpm -ivh msttcorefonts-2.0-1.noarch.rpm
$ sudo /etc/init.d/xfs restart

フォントがインストールされた場所を確認。

$ rpm -ql msttcorefonts
/usr/share/fonts/msttcorefonts
/usr/share/fonts/msttcorefonts/andalemo.ttf
/usr/share/fonts/msttcorefonts/arial.ttf
/usr/share/fonts/msttcorefonts/arialbd.ttf
/usr/share/fonts/msttcorefonts/arialbi.ttf
/usr/share/fonts/msttcorefonts/ariali.ttf
/usr/share/fonts/msttcorefonts/ariblk.ttf
/usr/share/fonts/msttcorefonts/comic.ttf
/usr/share/fonts/msttcorefonts/comicbd.ttf
/usr/share/fonts/msttcorefonts/cour.ttf
/usr/share/fonts/msttcorefonts/courbd.ttf
/usr/share/fonts/msttcorefonts/courbi.ttf
/usr/share/fonts/msttcorefonts/couri.ttf
/usr/share/fonts/msttcorefonts/fonts.dir
/usr/share/fonts/msttcorefonts/georgia.ttf
/usr/share/fonts/msttcorefonts/georgiab.ttf
/usr/share/fonts/msttcorefonts/georgiai.ttf
/usr/share/fonts/msttcorefonts/georgiaz.ttf
/usr/share/fonts/msttcorefonts/impact.ttf
/usr/share/fonts/msttcorefonts/tahoma.ttf
/usr/share/fonts/msttcorefonts/times.ttf
/usr/share/fonts/msttcorefonts/timesbd.ttf
/usr/share/fonts/msttcorefonts/timesbi.ttf
/usr/share/fonts/msttcorefonts/timesi.ttf
/usr/share/fonts/msttcorefonts/trebuc.ttf
/usr/share/fonts/msttcorefonts/trebucbd.ttf
/usr/share/fonts/msttcorefonts/trebucbi.ttf
/usr/share/fonts/msttcorefonts/trebucit.ttf
/usr/share/fonts/msttcorefonts/verdana.ttf
/usr/share/fonts/msttcorefonts/verdanab.ttf
/usr/share/fonts/msttcorefonts/verdanai.ttf
/usr/share/fonts/msttcorefonts/verdanaz.ttf
/usr/share/fonts/msttcorefonts/webdings.ttf

フォントを置くディレクトリを作成(エラーメッセージに出ていたディレクトリ)して、フォントへのシンボリックリンクを作成。

$ sudo mkdir /usr/share/fonts/default/TrueType
$ cd /usr/share/fonts/default/TrueType
$ sudo ln -s ../../msttcorefonts/verdana.ttf
$ sudo ln -s ../../msttcorefonts/arial.ttf

再びrmagick-1.15.14をインストール。

$ sudo gem install rmagick-1.15.14.gem
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick-1.15.14.gem:
        ERROR: Failed to build gem native extension.
/usr/local/bin/ruby gem_extconf.rb install rmagick-1.15.14.gem
sh configure
Configuring RMagick 1.15.14
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ruby... /usr/local/bin/ruby
checking Ruby version... 1.8.7
checking for Magick-config... Magick-config
checking ImageMagick version... 6.2.5
checking for library containing InitializeMagick... -lMagick
checking for snprintf... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking for AcquireMagickMemory... yes
checking for AcquireStringInfo... yes
checking for AdaptiveBlurImageChannel... no
checking for AdaptiveResizeImage... no
checking for AdaptiveSharpenImage... no
checking for AdaptiveThresholdImage... yes
checking for AddDefinitions... no
checking for AddNoiseImageChannel... yes
checking for AllocateImageProfileIterator... no
checking for BilevelImageChannel... yes
checking for BlackThresholdImage... yes
checking for BlurImageChannel... yes
checking for ClearMagickException... no
checking for CompareImageChannels... yes
checking for CompareImageLayers... no
checking for CompositeImageChannel... no
checking for ContrastStretchImageChannel... no
checking for ConvertHSLToRGB... no
checking for ConvertRGBToHSL... no
checking for ConvolveImageChannel... yes
checking for EvaluateImageChannel... yes
checking for ExportImagePixels... yes
checking for FuzzyColorCompare... yes
checking for FxImageChannel... yes
checking for GammaImageChannel... yes
checking for GaussianBlurImageChannel... yes
checking for GetBlobSize... yes
checking for GetColorHistogram... no
checking for GetColorInfoArray... no
checking for GetColorInfoList... yes
checking for GetImageChannelDepth... yes
checking for GetImageChannelDistortion... yes
checking for GetImageChannelExtrema... yes
checking for GetImageChannelMean... yes
checking for GetImageClipMask... yes
checking for GetImageHistogram... yes
checking for GetImageProfile... yes
checking for GetImageProperty... no
checking for GetImageQuantumDepth... yes
checking for GetImageStatistics... no
checking for GetMagickInfoArray... no
checking for GetMagickPixelPacket... yes
checking for GetMagickInfoList... yes
checking for GetMagickResourceLimit... yes
checking for GetMultilineTypeMetrics... yes
checking for GetNextImageAttribute... yes
checking for GetNextImageProfile... yes
checking for GetTypeInfoList... yes
checking for GrayscalePseudoClassImage... no
checking for ImagesToBlob... yes
checking for ImportImagePixels... yes
checking for InheritException... yes
checking for InterpolatePixelColor... no
checking for InterpretImageAttributes... no
checking for IsColorSimilar... yes
checking for IsImageSimilar... no
checking for LinearStretchImage... no
checking for NegateImageChannel... yes
checking for NormalizeImageChannel... yes
checking for OrderedPosterizeImageChannel... no
checking for ParseSizeGeometry... yes
checking for PolaroidImage... no
checking for PosterizeImage... yes
checking for PreviewImage... yes
checking for QuantumOperatorRegionImage... no
checking for RadialBlurImage... yes
checking for RadialBlurImageChannel... yes
checking for RandomChannelThresholdImage... yes
checking for RandomThresholdImageChannel... yes
checking for RecolorImage... no
checking for RemoveFirstImageFromList... yes
checking for SeparateImageChannel... yes
checking for SepiaToneImage... yes
checking for SetImageBackgroundColor... yes
checking for SetImageChannelDepth... yes
checking for SetImageColorspace... yes
checking for SetImageExtent... yes
checking for SetImageInfoFile... yes
checking for SetImageOption... yes
checking for SetImageProperty... no
checking for SetImageRegistry... no
checking for SetImageStorageClass... no
checking for SetImageProgressMonitor... yes
checking for ShadowImage... yes
checking for SharpenImageChannel... yes
checking for SigmoidalContrastImageChannel... yes
checking for SketchImage... no
checking for SpliceImage... yes
checking for StripImage... yes
checking for ThresholdImageChannel... yes
checking for TintImage... yes
checking for TransposeImage... no
checking for TransverseImage... no
checking for UniqueImageColors... no
checking for UnsharpMaskImageChannel... yes
checking for VignetteImage... no
checking for WhiteThresholdImage... yes
checking for XImportImage... yes
checking for MagickBooleanType... yes
checking for magick_int64_t... no
checking for magick_uint64_t... no
checking for ExtendedSignedIntegralType... yes
checking for ExtendedUnsignedIntegralType... yes
checking for MagickOffsetType... yes
checking for MagickSizeType... yes
checking for MagickPixelPacket... yes
checking for ExceptionInfo.module... no
checking for Image.bias... yes
checking for Image.orientation... yes
checking for Image.quality... yes
checking for Image.ticks_per_second... yes
checking for Image.transparent_color... no
checking for Image.iptc_profile... yes
checking for Image.generic_profile... yes
checking for Image.generic_profiles... yes
checking for ImageInfo.orientation... yes
checking for ImageInfo.channel... yes
checking for Image.extract_info... yes
checking for CineonLogRGBColorspace enum value... no
checking for HSBColorspace enum value... yes
checking for LABColorspace enum value... yes
checking for Rec601LumaColorspace enum value... yes
checking for Rec601YCbCrColorspace enum value... yes
checking for Rec709LumaColorspace enum value... yes
checking for Rec709YCbCrColorspace enum value... yes
checking for LogColorspace enum value... yes
checking for ReplaceCompositeOp enum value... yes
checking for DstCompositeOp enum value... yes
checking for ColorDodgeCompositeOp enum value... yes
checking for IndexChannel enum value... yes
checking for GrayChannel enum value... yes
checking for AllChannels enum value... yes
checking for JPEG2000Compression enum value... yes
checking for UndefinedGravity enum value... yes
checking for QuantumPixel enum value... yes
checking for TransparentVirtualPixelMethod enum value... yes
checking for CoalesceLayer enum value... no
checking for MaxEvaluateOperator enum value... yes
checking for PaletteBilevelMatteType enum value... no
checking if GetImageQuantumDepth has only 1 argument... no
checking if GetColorInfoList has only 2 arguments... no
checking if GetTypeInfoList has only 2 arguments... no
checking if GetMagickInfoList has only 2 arguments... no
checking if RemoveImageProfile returns MagickBooleanType... yes
checking if ColorInfo.color is a MagickPixelPacket... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ext/RMagick/extconf.rb
config.status: creating metaconfig
config.status: creating ext/RMagick/rmagick_config.h
config.status: ext/RMagick/rmagick_config.h is unchanged
configure:
This installation of RMagick 1.15.14 is configured for ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] and ImageMagick 6.2.5.
RMagick configuration completed successfully.
make
if test -n "/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; then \
        RUBYLIBDIR=--rbdir="/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; \
fi; \
if test -n "/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; then \
        RUBYARCHDIR=--sodir="/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/lib"; \
fi; \
/usr/local/bin/ruby setup.rb config $RUBYLIBDIR $RUBYARCHDIR --data-dir=/share
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
/usr/local/bin/ruby /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick/extconf.rb
creating Makefile
<--- ext/RMagick
<--- ext
/usr/local/bin/ruby setup.rb setup
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
make
make[1]: Entering directory `/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick'
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmmain.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rminfo.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmimage.c
rmimage.c: In function 'Image_aref':
rmimage.c:594: 警告: assignment discards qualifiers from pointer target type
rmimage.c: In function 'Image_aset':
rmimage.c:654: 警告: assignment discards qualifiers from pointer target type
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmilist.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmfill.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmdraw.c
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick -DRUBY_VERSION=0x187  -I/usr/include -fPIC   -c rmutil.c
gcc -shared -o RMagick.so rmmain.o rminfo.o rmimage.o rmilist.o rmfill.o rmdraw.o rmutil.o -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L.  -rdynamic -Wl,-export-dynamic -L/usr/lib -lfreetype -lz -L/usr/lib  -lMagick -ltiff -lfreetype -ljpeg -lgs -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread -ldl -lcrypt -lm   -lc
make[1]: Leaving directory `/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/ext/RMagick'
<--- ext/RMagick
<--- ext
setup.rb: entering post-setup phase...
post-setup.rb: setting up documentation...
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick Adispatch.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick InitialCoords.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick NewCoordSys.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick OrigCoordSys.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick PreserveAspectRatio.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick RotateScale.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick Skew.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick Use01.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick Use02.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick Use03.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick ViewBox.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick Zconstitute.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick adaptive_threshold.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick add_noise.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick affine.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick affine_transform.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick arc.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick arcpath.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick arcs01.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick arcs02.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick average.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick axes.rb
axes.rb:59:in `draw': unable to read font `/usr/share/fonts/default/TrueType/arialbi.ttf' (Magick::ImageMagickError)
        from axes.rb:59
post-setup.rb: axes.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick baseline_shift01.rb
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/arialbd.ttf' (Magick::ImageMagickError)
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `render'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:696:in `text'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:65:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:84:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:70:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:69:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:69:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:236:in `draw'
        from baseline_shift01.rb:17
post-setup.rb: baseline_shift01.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick bilevel_channel.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick blur_image.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick border.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick bounding_box.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cbezier1.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cbezier2.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cbezier3.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cbezier4.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cbezier5.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cbezier6.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick channel.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick charcoal.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick chop.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick circle.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick circle01.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick clip_path.rb
clip_path.rb:34: warning: `composite' can cause memory leaks when RMagick was built with ImageMagick 6.2.5.
Upgrade to ImageMagick 6.3.4 or later to prevent this behavior.
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick coalesce.rb
This may take a few seconds...
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick color_fill_to_border.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick color_floodfill.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick color_histogram.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick color_reset.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick colorize.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick colors.rb
colors.rb:47:in `annotate': unable to read font `/usr/share/fonts/default/TrueType/arialbd.ttf' (Magick::ImageMagickError)
        from colors.rb:47
Creating colors.miff. This may take a few seconds...
        Creating color swatches...
        Creating montage...
post-setup.rb: colors.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick composite.rb
composite.rb:128: warning: `texture=' can cause memory leaks when RMagick was built with ImageMagick 6.2.5.
Upgrade to ImageMagick 6.3.4 or later to prevent this behavior.
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick contrast.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick crop.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick crop_resized.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick crop_with_gravity.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cubic01.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cubic02.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick cycle_colormap.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick dissolve.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick drawcomp.rb
drawcomp.rb:26: warning: `composite' can cause memory leaks when RMagick was built with ImageMagick 6.2.5.
Upgrade to ImageMagick 6.3.4 or later to prevent this behavior.
drawcomp.rb:32: warning: `composite' can cause memory leaks when RMagick was built with ImageMagick 6.2.5.
Upgrade to ImageMagick 6.3.4 or later to prevent this behavior.
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick drop_shadow.rb
drop_shadow.rb:29:in `annotate': unable to read font `/usr/share/fonts/default/TrueType/arialbi.ttf' (Magick::ImageMagickError)
        from drop_shadow.rb:29
post-setup.rb: drop_shadow.rb example returned error code 256
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick edge.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick ellipse.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick ellipse01.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick emboss.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick enhance.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick equalize.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick evenodd.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick flatten_images.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick flip.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick flop.rb
/usr/local/bin/ruby -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib -I /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./ext/RMagick font_styles.rb
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/arialbd.ttf' (Magick::ImageMagickError)
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:321:in `render'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/misc.rb:696:in `text'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/text.rb:65:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/container.rb:72:in `add_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:264:in `add_outermost_primitives'
        from /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/./lib/rvg/rvg.rb:236:in `draw'
        from font_styles.rb:31
setup.rb:             Too many examples failed. Search for "Help!" at
            http://rmagick.rubyforge.org/install-faq.html.
post-setup.rb: font_styles.rb example returned error code 256
make: *** [all] エラー 1
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.14/gem_make.out

`get_type_metrics': unable to read font `/usr/share/fonts/default/TrueType/arialbd.ttf' (Magick::ImageMagickError)
arialbdへのシンボリックリンクも作成。

$ sudo ln -s ../../msttcorefonts/arialbd.ttf

今度こそと思って、rmagick-1.15.14をインストールしたら、またエラー。
verdanabがない。

$ sudo ln -s ../../msttcorefonts/verdanab.ttf

結局、以下の4つのシンボリックリンクが必要だった。

$ cd /usr/share/fonts/default/TrueType
$ sudo ln -s ../../msttcorefonts/arial.ttf
$ sudo ln -s ../../msttcorefonts/arialbd.ttf
$ sudo ln -s ../../msttcorefonts/verdana.ttf
$ sudo ln -s ../../msttcorefonts/verdanab.ttf

そして、またrmagick-1.15.14をインストール。

$ sudo gem install rmagick-1.15.14.gem
Password:
Building native extensions.  This could take a while...
Successfully installed rmagick-1.15.14
1 gem installed

やっとインストールできた。

ruby、rubygemsのインストール

最新安定版であるruby 1.8.7-p72(2008-08-28現在)をインストール。
ダウンロード

$ wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
$ tar xzvf ruby-1.8.7-p72.tar.gz
$ cd ruby-1.8.7-p72
$ ./configure
$ make
$ sudo make install

rubygemsをインストール。

$ wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
$ tar xvzf rubygems-1.2.0.tgz
$ cd rubygems-1.2.0
$ sudo ruby setup.rb

ここでzlibがないというエラーになる場合は、
zlib-develをインストール。

$ sudo yum install zlib-devel

rubyのソースを解凍したディレクトリに移動しext/zlibに行き、zlibの設定。

$cd ~/src/cd ruby-1.8.7-p72/ext/zlib
$ ruby extconf.rb --with-zlib-include=/usr/include -with-zlib-lib=/usr/lib
$ make
$ sudo make install

再びrubygemsのインストール。

$ sudo ruby setup.rb

RubyGems Manuals

Railsでmemcachedを使う

mac osxにmemcachedをインストール。

$ sudo port install memcached
Password:
--->  Fetching libevent
--->  Attempting to fetch libevent-1.4.3-stable.tar.gz from http://monkey.org/~provos/
--->  Verifying checksum(s) for libevent
--->  Extracting libevent
--->  Configuring libevent
--->  Building libevent with target all
--->  Staging libevent into destroot
--->  Installing libevent 1.4.3_0
--->  Activating libevent 1.4.3_0
--->  Cleaning libevent
--->  Fetching memcached
--->  Attempting to fetch memcached-1.2.5.tar.gz from http://www.danga.com/memcached/dist/
--->  Verifying checksum(s) for memcached
--->  Extracting memcached
--->  Configuring memcached
--->  Building memcached with target all
--->  Staging memcached into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting memcached with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.memcached.plist
###########################################################
--->  Installing memcached 1.2.5_2
--->  Activating memcached 1.2.5_2
--->  Cleaning memcached

memcachedの自動起動を設定。

$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.memcached.plist

cached_modelをインストール。(memcache-clientもインストールされる。)

$ sudo gem install cached_model

config/environment.rb

require 'memcache'
memcache_options = {
  :c_threshold => 10_000,
  :compression => true,
  :debug => false,
  :namespace => ":app-#{RAILS_ENV}",
  :readonly => false,
  :urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = 'localhost:11211'
ActionController::Base.session_options[:expires] = 1800
ActionController::Base.session_options[:cache] = CACHE

参考:
memcached Basics for Rails | Ruby on Rails for Newbies
memcached: a distributed memory object caching system
memcached公式サイト
Installing memcached | Development, Analysis And Research
memcahcedのインストール方法
Rails fragment cache with memcached-client and time-based :expire option - skwpspace
railsのfragment cacheでmemcachedを使うためのプラグイン
railsのセッション管理でmemcachedを利用 - dreammindの日記
FFTT : memcached
[memcached] memcached導入手順 - Life with IT

手動でPDTプロジェクトを設定する方法

IRC FAQ - Eclipsepedia
.projectファイルに以下のセクションを追加する。

<buildSpec>
    <buildCommand>
        <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
        <arguments></arguments>
    </buildCommand>
    <buildCommand>
        <name>org.eclipse.wst.validation.validationbuilder</name>
        <arguments></arguments>
    </buildCommand>
</buildSpec>
<natures>
    <nature>org.eclipse.php.core.PHPNature</nature>
</natures>