LoginSignup
2
3

More than 5 years have passed since last update.

Macにbundleでrmagickをインストールする

Last updated at Posted at 2017-08-15

Railsでrmagickを使おうとしたら、ImageMagickのバージョンが合わなくてbundleでインストールできなくて困ったのでメモ

環境

  • Ruby on Rails 5.1.3
  • MacOSX 10.12.6
  • Homebrew 1.3.1
  • rmagick 2.16.0
# ImageMagickの6系をbrewでインストール
$ brew install imagemagick@6
# .bash_profileにPKG_CONFIG_PATHを設定
$ vim ~/.bash_profile
~/.bash_profile
export PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig"
$ source ~/.bash_profile
$ cd path/to/rails_project
$ bundle

参考

2
3
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
2
3