I'm using Rails 4.1.4 with rails-latex
gem to generate PDFs, but I got this error when viewing the PDF:
pdflatex failed: See /home/sarunint/dockey/tmp/rails-latex/3639-548202856440663759/input.log for details
And this is the content of the log file:
No such file or directory - pdflatex:
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/rails-latex-1.0.12/lib/rails-latex/latex_to_pdf.rb:34:in `exec'
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/rails-latex-1.0.12/lib/rails-latex/latex_to_pdf.rb:34:in `block in generate_pdf'
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/rails-latex-1.0.12/lib/rails-latex/latex_to_pdf.rb:27:in `fork'
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/rails-latex-1.0.12/lib/rails-latex/latex_to_pdf.rb:27:in `generate_pdf'
/home/sarunint/dockey/app/views/static_pages/home.pdf.erbtex:5:in `_app_views_static_pages_home_pdf_erbtex___3893833075752892539_70272278165640'
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/actionview-4.1.4/lib/action_view/template.rb:145:in `block in render'
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/notifications.rb:161:in `instrument'
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/actionview-4.1.4/lib/action_view/template.rb:339:in `instrument'
/home/sarunint/.rvm/gems/ruby-2.1.2/gems/actionview-4.1.4/lib/action_view/template.rb:143:in `render'
...much more...
I'm pretty sure that the latex is installed on my system. Can someone help me?
确保目录/usr/local/texlive/2014/bin/x86_64-linux
位于$PATH
,或者位于rails-latex
用于检测程序位置的任何设置中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.