こんにちは。Takitaです。
不用意にHomebrewをupgradeしたらRailsが起動しなくなってしまって、無駄な時間を消費した時のメモです。
bundler: failed to load command: rspec (/Users/tackeyy/dev/minacolor/vendor/bundle/ruby/2.3.0/bin/rspec)
LoadError: dlopen(/Users/tackeyy/dev/minacolor/vendor/bundle/ruby/2.3.0/gems/rmagick-2.15.4/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/opt/imagemagick@6/lib/libMagickCore-6.Q16.4.dylib
いろんな記事を参考に最終的に以下で解決しました。
$ bundle exec gem uninstall rmagick
$ PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig bundle install --path vendor/bundle
http://milligramme.cc/note/post/2017-01-11-bundle-reinstall/
http://linuxserver.jp/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/ruby/on-rails/imagemagick-homebrew-versions