Skip to content

Instantly share code, notes, and snippets.

@vochicong
Created September 4, 2017 04:46
Show Gist options
  • Save vochicong/c35fc98cdabdec89278939eee5ae7d75 to your computer and use it in GitHub Desktop.
Save vochicong/c35fc98cdabdec89278939eee5ae7d75 to your computer and use it in GitHub Desktop.
install rmagic on mac
brew install imagemagick@6
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
export LDFLAGS=-L/usr/local/opt/imagemagick@6/lib:$LDFLAGS
export CPPFLAGS=-I/usr/local/opt/imagemagick@6/include:$CPPFLAGS
export PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig:$PKG_CONFIG_PATH
gem install rmagic
# https://stackoverflow.com/questions/10063051/bundle-cant-install-rmagick-gem-on-mac-osx-10-7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment