An error occurred while installing rmagick (2.13.4), and Bundler cannot continue.
老版本的库: rmagick (2.13.4) 安装出错
第1步: 安装 imagemagick@6
brew install imagemagick@6
第2步: 临时的添加一些环境变量
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH";
export LDFLAGS="-L/usr/local/opt/imagemagick@6/lib";
export CPPFLAGS="-I/usr/local/opt/imagemagick@6/include";
export PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig";
第3步: 正常安装
gem install rmagick -v '2.13.4' --source 'https://gems.ruby-china.com/'