Help us understand the problem. What is going on with this article?


More than 1 year has passed since last update.


  • Mac
    • macOS High Sierra 10.13.3
  • Ruby
    • ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17]
  • Rails
    • Rails 5.0.2
  • RMagick
    • 2.16.0

ググってよくある方法としては、なんとかしてhomebrewでinstallしたimagemagickをimagemagick@6force linkさせる等でglobalにimagemagickのバージョンを下げている例を見かけるが、
imagemagick@6をkeg onlyでdownloadした状態で、direnv等で以下を設定した上でbundle install 叩くとcompileうまくいきそうということが判明。

export PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig


Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away