Error installing rmagick: ERROR: Failed to build gem native extension

后端 未结 19 2880
眼角桃花
眼角桃花 2020-12-04 15:09

I am trying to run one project on my local machine. I installed Ruby and Rails on my Mac OS system. It is working properly. I can create a new project and can run it properl

19条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 15:50

    here's what i did on 16.04,

    sudo apt-get install libmagickwand-dev
    sudo apt-get install graphicsmagick-imagemagick-compat
    

    and then install gem like that

    PATH="/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16:$PATH" gem install rmagick -v '2.13.2'
    

提交回复
热议问题