-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
注册时验证码不能正常出现的问题 #1
Comments
我的系统是 Mac OS X 10.8.2,相应的字体文件目录是: |
=>$ ls /usr/local/opt/ghostscript/share/ghostscript/fonts/ 终端运行ls查看字体文件目录的结果如下: COPYING b018012l.pfm d050000l.pfb n019063l.afm n022004l.afm 这个需要调整哪里? |
但是报错的目录,是 |
如何修改呢? 1,把我的字体路径修改为报错中要求的路径呢? 2,修改ImageMagick的配置呢? 我不是很懂,如果修改第一个,为了不影响其他的系统使用。那么我是不是应该复制出来,然后修改文件夹名字呢? |
Magick::ImageMagickError (unable to read font
/usr/local/opt/ghostscript/share/ghostscript/fontsx/n021023l.pfb' @ error/annotate.c/RenderFreetype/1123:
(null)'):lib/rabel/captcha.rb:20:in
annotate' lib/rabel/captcha.rb:20:in
block in image'lib/rabel/captcha.rb:19:in
each_char' lib/rabel/captcha.rb:19:in
image'app/controllers/welcome_controller.rb:30:in
block (2 levels) in captcha' app/controllers/welcome_controller.rb:27:in
captcha'1,ghostscript,2,freetype,3,ImageMagick 是按照顺序用homebrew安装的。在注册的时候,就是出现验证码的时候,就出现了这个问题。
The text was updated successfully, but these errors were encountered: