Ruby1.8.7+RMagick1.15.17
Ruby1.9.2でのインストールを中断し、Ruby1.8.7でRMagickのインストールを試みる。
RMagick1系・・・Ruby1.8系
RMagick2系・・・Ruby1.8 or 1.9系
なので、Rubyを1.8.7に切り替え
rvm use 1.8.7 --default
vi Gemfile #gem 'rmagick', :require => 'RMagick' gem 'rmagick', '1.15.17', :require => 'RMagick'
# bundle install Fetching source index for http://rubygems.org/ Installing rake (0.9.2) Installing abstract (1.0.0) Installing activesupport (3.0.9) Installing builder (2.1.2) Installing i18n (0.5.0) Installing activemodel (3.0.9) Installing erubis (2.6.6) Installing rack (1.2.3) Installing rack-mount (0.6.14) Installing rack-test (0.5.7) Installing tzinfo (0.3.29) Installing actionpack (3.0.9) Installing mime-types (1.16) Installing polyglot (0.3.1) Installing treetop (1.4.9) Installing mail (2.2.19) Installing actionmailer (3.0.9) Installing arel (2.0.10) Installing activerecord (3.0.9) Installing activeresource (3.0.9) Using bundler (1.0.15) Installing mysql2 (0.2.6) with native extensions Installing rdoc (3.8) Installing thor (0.14.6) Installing railties (3.0.9) Installing rails (3.0.9) Installing rmagick (1.15.17) with native extensions /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /usr/local/rvm/rubies/ruby-1.8.7-p352/bin/ruby gem_extconf.rb sh configure Configuring RMagick 1.15.17 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/rvm/rubies/ruby-1.8.7-p352/bin/ruby checking Ruby version... 1.8.7 checking for Magick-config... Magick-config checking ImageMagick version... 6.7.1 checking for library containing InitializeMagick... no configure: error: Can't install RMagick. Can't find libMagick or one of the dependent libraries. Check the config.log file for more detailed information. RMagick configuration failed with status 1. Gem files will remain installed in /vol/kanrakugai/vendor/bundle/ruby/1.8/gems/rmagick-1.15.17 for inspection. Results logged to /vol/kanrakugai/vendor/bundle/ruby/1.8/gems/rmagick-1.15.17/./gem_make.out from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/installer.rb:486:in `each' from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/installer.rb:486:in `build_extensions' from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/installer.rb:159:in `install' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/source.rb:101:in `install' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:78:in `preserve_paths' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/source.rb:91:in `install' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/installer.rb:58:in `run' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:93:in `with_build_args' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/installer.rb:57:in `run' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/installer.rb:49:in `run' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/installer.rb:8:in `install' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `send' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start' from /usr/local/rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/bin/bundle:13 from /usr/local/rvm/gems/ruby-1.8.7-p352/bin/bundle:19:in `load' from /usr/local/rvm/gems/ruby-1.8.7-p352/bin/bundle:19
やはりエラー…