rails paperclip and passenger `is not recognized by the 'identify' command`

前端 未结 14 1034
终归单人心
终归单人心 2020-11-28 06:37

When I upload a photo, my model fails validation, err well even without any validations I\'m returned this error:

/tmp/stream20100103-13830-ywmerx-0 is not r         


        
14条回答
  •  生来不讨喜
    2020-11-28 07:12

    I had this issue when using OSX + MAMP + Passenger + Paperclip and after setting the command_path and ensuring imagemagick was properly installed via brew, properly setting the temp and upload directories for passenger to something writable, it still wouldn't work!

    The solution was to edit the envvars file for MAMP in /Applications/MAMP/Library/bin/envvars and comment out the export DYLD_LIBRARY_PATH line.

    That is, change the line that says

    export DYLD_LIBRARY_PATH
    

    to

    # export DYLD_LIBRARY_PATH
    

    Then restart MAMP and feel the elation when your images are properly uploading/resizing.

提交回复
热议问题