载波,Rails 4; Errno :: ENOENT(无此文件或目录-标识) [英] Carrierwave, Rails 4; Errno::ENOENT (No such file or directory - identify)

查看:88
本文介绍了载波,Rails 4; Errno :: ENOENT(无此文件或目录-标识)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要移至Rails4。在我的上传器中,我有以下内容:

I'm moving to Rails4. In my uploader, I have the following:

  version :thumb do
     process :resize_to_fill => [200, 200]
  end

这会导致以下错误: Errno :: ENOENT(没有此类文件或目录-标识)

Which now causes the following error: "Errno::ENOENT (No such file or directory - identify)"

当我注释掉代码时,错误消失了,但是现在我没有缩略图了。有关导致此问题的原因有什么想法?

The error goes away when I comment out the code, but of course now I don't have a thumbnail. Any ideas as to what is causing this?

推荐答案

重新安装imagemagick可以解决此问题。

Reinstalling imagemagick fixed the problem.

这篇关于载波,Rails 4; Errno :: ENOENT(无此文件或目录-标识)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆