1 . sudo apt-get -y install libmagickwand-dev
2 . sudo vim / etc / sudoers
3 . Depois Defaults env_reset
, adicione:
Defaults env_keep += "C_INCLUDE_PATH PKG_CONFIG_PATH"
4 . Adicionar a ~ / .bachrc:
export C_INCLUDE_PATH="/opt/bitnami/common/include/ImageMagick:$C_INCLUDE_PATH"
export PKG_CONFIG_PATH="/opt/bitnami/common/lib/pkgconfig:$PKG_CONFIG_PATH"
5 . sudo gem install rmagick -v 2.13.2