我在我的一个项目中使用 imagekit gem 从 html 创建图像。Imagekit 使用 wkhtmltoimage 从 html 生成图像。
我已经使用gem install wkhtmltoimage-binary
. 但是当我尝试运行该示例/usr/bin/wkhtmltoimage --help
时,出现以下错误:
/usr/bin/wkhtmltoimage: error while loading shared libraries: libicui18n.so.42: cannot open shared object file: No such file or directory
.
我在 Centos 6.6 服务器上运行我的 Ruby on Rails 4 项目。
请建议。