我在Ubuntu 12.10上使用带有ruby 1.8.7和rails 3.0.7的gbarcode
在我的dev服务器中有gbarcode版本0.98.20,它可以工作并生成条形码。然而,我的生产服务器上有0.98.16版本,它给出了以下错误:
ActionController::RoutingError (No route matches "/images/barcodes/ATL-00566.png")现在我知道这听起来像是路由问题,但事实并非如此。问题是rails正在图像/条形码目录中寻找条形码png,它不在那里,因为版本0.98.16没有生成它。
我试图在我的生产系统上安装0.98.20,但得到以下错误:
extconf.rb:10: GNU Barcode is no longer bundled with the gbarcode gem. Please install GNU barcode before installing this gem (Exception)发布于 2012-10-12 04:13:58
问题出在windows中的ImageMagick。gbarcode 0.98.16和0.98.20一样有效。
https://stackoverflow.com/questions/12753024
复制相似问题