我在Mountain Lion上并使用Homebrew安装了ImageMagick(minimagick也在我的Gemfile中,但我认为这无关紧要)。SimpleCaptcha在Rails应用程序中使用它来创建验证码。
但是,未创建图像是导致此错误的原因:
Error while running convert: convert: unable to read font `/usr/local/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1123.
convert: Postscript delegate failed `/var/folders/gd/n7rzfhkd5jd0ws8jnzsz34hr0000gn/T/magick-vzHHz4ZP': No such file or directory @ error/ps.c/ReadPSImage/830.
convert: no images defined `/var/folders/gd/n7rzfhkd5jd0ws8jnzsz34hr0000gn/T/simple_captcha20121218-64930-1thtfpf.jpg' @ error/convert.c/ConvertImageCommand/3032.
有任何想法吗?
$ brew unlink ghostscript && brew link ghostscript