現在ImageMagickのRmagickを使おうといろいろ調べています。
AWS cloud9でポートフォリオ作成をしており、それに伴いプロフィール画像をつけれれば良いなと思ったからです。
まず、imagemagickを導入してからでないとrmagickは使えないということだったので、imagemagickを導入したところまではよかったのですが、そこからRmagickをインストールしようとするとこのようなエラーが出てきます
Fetching rmagick 3.0.0 Installing rmagick 3.0.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/ec2-user/.rvm/gems/ruby-2.5.3/gems/rmagick-3.0.0/ext/RMagick /home/ec2-user/.rvm/rubies/ruby-2.5.3/bin/ruby -r ./siteconf20190221-24750-1haa45t.rb extconf.rb checking for gcc... yes checking for Magick-config... yes checking for outdated ImageMagick version (<= 6.8.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=/home/ec2-user/.rvm/rubies/ruby-2.5.3/bin/$(RUBY_BASE_NAME) To see why this extension failed to compile, please check the mkmf.log which can be found here: /home/ec2-user/.rvm/gems/ruby-2.5.3/extensions/x86_64-linux/2.5.0/rmagick-3.0.0/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.5.3/gems/rmagick-3.0.0 for inspection. Results logged to /home/ec2-user/.rvm/gems/ruby-2.5.3/extensions/x86_64-linux/2.5.0/rmagick-3.0.0/gem_make.out An error occurred while installing rmagick (3.0.0), and Bundler cannot continue. Make sure that `gem install rmagick -v '3.0.0' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: rmagick
/home/ec2-user/.rvm/gems/ruby-2.5.3/extensions/x86_64-linux/2.5.0/rmagick-3.0.0/mkmf.log↓
find_executable: checking for gcc... -------------------- yes -------------------- find_executable: checking for Magick-config... -------------------- yes -------------------- Detected ImageMagick version: 6.7.8 Can't install RMagick 3.0.0. You must have ImageMagick 6.8.9 or later. Can't install RMagick 3.0.0. You must have ImageMagick 6.8.9 or later.
ちなみにimagemagickはこのコマンドでインストールしました。
$ sudo yum -y install ImageMagick ImageMagick-devel
結果的に「imagemagickのバージョンが古い」ということかなと解釈し、最新版を導入するためにサイトをいろいろみたのですが、一向に導入できません。
$sudo apt-get install imagemagick
一旦imagemagickを削除し、上記のようにうっても、apt-getコマンドが見つからないというエラーになったりします。
回答よろしくお願いします。
ImageMagickのバージョンはいくつですか?
次のコマンドの実行結果を教えてください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/21 10:58
2019/02/21 13:03
2019/02/23 07:16