【问题标题】:Rails 4 - wkhtmltopdf command failedRails 4 - wkhtmltopdf 命令失败
【发布时间】:2016-05-23 17:51:35
【问题描述】:

当我尝试直接运行 wkhtmltopdf (/usr/local/bin/wkhtmltopdf - test.pdf) 时,出现以下错误

/usr/local/bin/wkhtmltopdf: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

sudo apt-get install libfontconfig 不适合我。

是否有任何配置,请指导我进一步进行,谢谢

【问题讨论】:

标签: ruby-on-rails wkhtmltopdf pdfkit


【解决方案1】:

请尝试在 ubuntu 上运行以下命令

try apt-get install libfontconfig1

【讨论】:

    猜你喜欢
    • 2014-01-04
    • 1970-01-01
    • 2023-03-15
    • 2011-06-08
    • 2013-01-04
    • 2012-09-13
    • 1970-01-01
    • 2014-12-31
    • 2023-03-18
    相关资源
    最近更新 更多