Skip to content

Instantly share code, notes, and snippets.

@wbotelhos
Last active October 16, 2017 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbotelhos/0c5e4f2933d1d68d8c947422bc68244e to your computer and use it in GitHub Desktop.
Save wbotelhos/0c5e4f2933d1d68d8c947422bc68244e to your computer and use it in GitHub Desktop.
Can't install RMagick. Can't find MagickWand.h.
export C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/7.0.7-7/include/ImageMagick-7
export PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick/7.0.7-7/lib/pkgconfig
gem install rmagick
# if it fails, use imagemagick 6
brew uninstall imagemagick # all of them
brew install imagemagick@6
brew link imagemagick@6 --force
gem install rmagick
# or maybe you need to set your path
export PATH="${PATH}:/usr/local/opt/imagemagick@6/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment