【发布时间】:2017-07-06 13:52:05
【问题描述】:
在我的 Rails 环境日志文件中
PDFKit::NoExecutableError (No wkhtmltopdf executable found at `/` is not writable.
Bundler will use `/tmp/bundler/home/unknown' as your home directory temporarily.
/home/ubuntu/rails-app/shared/bundle/ruby/2.3.0/bin/wkhtmltopdf
请安装 wkhtmltopdf - https://github.com/pdfkit/PDFKit/wiki/Installing-WKHTMLTOPDF): pdfkit (0.8.2) lib/pdfkit/pdfkit.rb:32:in
initialize' pdfkit (0.8.2) lib/pdfkit/middleware.rb:21:innew' pdfkit (0.8.2) lib/pdfkit/middleware.rb:21:in `call'
我按照apt-get 的指示尝试安装,但错误仍然存在。
ubuntu@server:~$ which wkhtmltopdf
/home/ubuntu/.rbenv/shims/wkhtmltopdf
ubuntu@server:~$ wkhtmltopdf --version
wkhtmltopdf 0.12.3 (with patched qt)
【问题讨论】:
标签: ruby-on-rails ruby wkhtmltopdf pdfkit