LoginSignup
1
2

More than 5 years have passed since last update.

gem install rmagick に失敗したときの対処

Posted at

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/opt/rubies/ruby-2.1.0/bin/ruby -r ./siteconf20150506-27602-1f5ibbz.rb extconf.rb

checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
checking for ImageMagick version >= 6.4.9... *** 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=/opt/rubies/ruby-2.1.0/bin/ruby
extconf.rb:154:in `': No such file or directory - convert (Errno::ENOENT)
from extconf.rb:154:in
block in '
from /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:918:in block in checking_for'
from /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in
block (2 levels) in postpone'
from /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in open'
from /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in
block in postpone'
from /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in open'
from /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:347:in
postpone'
from /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:917:in checking_for'
from extconf.rb:151:in
'

extconf failed, exit code 1

Gem files will remain installed in /home/vagrant/.gem/ruby/2.1.0/gems/rmagick-2.13.4 for inspection.
Results logged to /home/vagrant/.gem/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/rmagick-2.13.4/gem_make.out
An error occurred while installing rmagick (2.13.4), and Bundler cannot continue.
Make sure that gem install rmagick -v '2.13.4' succeeds before bundling.

yum install ImageMagick-devel

で解決。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2