備忘がてら・・・。
発生した問題
Gemfileに以下を追記して実行したらエラーが発生した。
gem 'rmagick'
No package 'MagickCore' found
ERROR: Can't install RMagick 4.1.2.
Can't find the ImageMagick library or one of the dependent libraries.
Check the mkmf.log file for more detailed information.
MagickCore が見つからないらしい。
ImageMagick自体はインストール済みだった。
% convert --version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
解決策
ここに解決策があった
sudo apt-get install libmagickwand-dev
その後、 bundle install
を実行したら無事にインストールができた。