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

后端 未结 19 2949
眼角桃花
眼角桃花 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 16:00

    As per the error log it looks like "Magick-config" is missing. You need to install ImageMagik or GraphicsMagick. These are the commands you should follow which is taken from RMagik Documentation:

    1) Go to http://www.imagemagick.org or http://www.graphicsmagick.org and download the latest version of the software to a temporary directory. the extract them :
    
    - tar xvzf ImageMagick.tar.gz
    - cd ImageMagick-x.x.x
    
    - ./configure --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8
    
    - make
    - sudo make install
    
    - sudo gem install rmagick
    

提交回复
热议问题