./InformationWorks --devblog
"Learn" "Share" "Have Fun"
1 September 2018

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

by Harshal Bhakta

tags: ruby - rmagick - ruby-on-rails
comments powered by Disqus