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

前端 未结 8 1119
难免孤独
难免孤独 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.

提交回复
热议问题