walle / gimli

Utility for converting markup files to pdf files
https://github.com/walle/gimli
MIT License
538 stars 44 forks source link

gimli can't find wkhtmltopdf #14

Closed wowpatrick closed 13 years ago

wowpatrick commented 13 years ago

For some rease gimli can't find the wkhtmltopdf file even though it present in /usr/local/bin/wkhtmltopdf.


/opt/local/lib/ruby/gems/1.8/gems/pdfkit-0.5.1/lib/pdfkit/configuration.rb:20: warning: Insecure world writable dir /data/dev in PATH, mode 040777
/opt/local/lib/ruby/gems/1.8/gems/pdfkit-0.5.1/lib/pdfkit/pdfkit.rb:29:in `initialize': No wkhtmltopdf executable found at Could not locate Gemfile (PDFKit::NoExecutableError)
>> Please install wkhtmltopdf - https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/../lib/gimli/converter.rb:56:in `new'
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/../lib/gimli/converter.rb:56:in `pdf_kit'
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/../lib/gimli/converter.rb:67:in `output_pdf'
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/../lib/gimli/converter.rb:31:in `convert!'
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/../lib/gimli/converter.rb:24:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/../lib/gimli/converter.rb:24:in `convert!'
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/../lib/gimli.rb:21:in `process!'
    from /opt/local/lib/ruby/gems/1.8/gems/gimli-0.1.8/bin/gimli:9
    from /opt/local/bin/gimli:19:in `load'
    from /opt/local/bin/gimli:19
walle commented 13 years ago

This seems to be a problem in PDFKit. See this closed issue https://github.com/walle/gimli/issues/11

wowpatrick commented 13 years ago

That was it, gimli is now work just as it should. Thanks! Maybe add it to the readme file as known issues?