Install RMagick on macOS (10.13) High Sierra
Installation
Follow the below steps to successfully install RMagick on macOS High Sierra. Enter all below commands into the Terminal.
Install Homebrew
Check if brew is already installed by executing “$ brew -v”. If you get “-bash: brew: command not found”, execute the below command to install brew. Else, skip to the next step.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install pkg-config
Check if pkg-conf is already installed by executing “$ pkg-config –version”. If you get “-bash: pkg-conf: command not found”, execute the below command to install pkg-conf. Else, skip to the next step.
brew install pkg-config
Install imagemagick@6
$ brew uninstall imagemagick
$ brew uninstall imagemagick@6
$ echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.bash_profile
$ source ~/.bash_profile
Install RMagick
$ gem install rmagick
Reference Links
- Homebrew: https://brew.sh/
- pkg-config: https://www.freedesktop.org/wiki/Software/pkg-config/
- ImageMagick: https://www.imagemagick.org
- RMagick: https://rmagick.github.io/
by Harshal Bhakta
tags: ruby - rmagick - ruby-on-railscomments powered by Disqus