rmagick imagemagick Mac installation configuration

Install rmagick 2.16.0 

 

rmagick requires an older version imagemagick@6

 

brew search imagemagick@6

 

Install brew install imagemagick@6

 

import environment variables

 

This formula is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/imagemagick@6/lib
    CPPFLAGS: -I/usr/local/opt/imagemagick@6/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/imagemagick@6/lib/pkgconfig


export PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig

 

gem install rmagick

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326199327&siteId=291194637