All of a sudden started getting “Could Not Run The `Identify` Command. Please Install ImageMagick.”

前端 未结 8 1120
难免孤独
难免孤独 2021-02-02 09:01

I\'ve had ImageMagick, RMagick, & PaperClip working properly with everything setup including the config Paperclip.options[:command_path] in production.rb<

相关标签:
8条回答
  • 2021-02-02 09:11

    I had this issue, when I had started rails server from my rubymine ide. It seems it does not load your .zshrc (in my case, could also be valid for .bashrc). So some environment variables that make imagemagick work with dvm were not set. For example:

    export PATH=$HOME/local/imagemagick/bin:$PATH
    export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH
    

    Once I restarted from my terminal, the error was gone.

    0 讨论(0)
  • 2021-02-02 09:16

    I had a same issue. This is what worked for me. From terminal, first:

    sudo apt-get update
    

    Then:

    sudo apt-get install imagemagick
    
    0 讨论(0)
  • 2021-02-02 09:19

    For Cent OS users:

     sudo  yum install ImageMagick ImageMagick-devel
    

    will do the job

    0 讨论(0)
  • 2021-02-02 09:22

    For Mac users: just run the command brew install imagemagick.

    0 讨论(0)
  • 2021-02-02 09:26

    I had the same problem. It was caused by https://github.com/thoughtbot/paperclip/issues/1709

    0 讨论(0)
  • 2021-02-02 09:30

    From a terminal, run the following command:

    sudo apt-get install imagemagick
    
    0 讨论(0)
提交回复
热议问题