amagical-net / rails-latex

rails-latex is a renderer for rails which allows tex files with erb to be turned into an inline pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails latex demo- not working (rails 3.1 ruby 1.9.2)

fillky opened this issue · comments

Hi I try to use you example but it seems not working. I am only beginner in rails so maybe it is my mistake but please give some advice. Here are some errors:
RuntimeError in Latex_example#index

From input.log
No such file or directory - pdflatex:
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/rails-latex-1.0.7/lib/rails-latex/latex_to_pdf.rb:28:in exec' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/rails-latex-1.0.7/lib/rails-latex/latex_to_pdf.rb:28:inblock in generate_pdf'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/rails-latex-1.0.7/lib/rails-latex/latex_to_pdf.rb:21:in fork' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/rails-latex-1.0.7/lib/rails-latex/latex_to_pdf.rb:21:ingenerate_pdf'
/media/Tomasko/Documents/Workspace_RoR/rails-latex-demo/app/views/layouts/application.pdf.erbtex:15:in _app_views_layouts_application_pdf_erbtex___1912624811996256140_20580820' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/template.rb:144:inblock in render'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.1.0/lib/active_support/notifications.rb:55:in instrument' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/template.rb:142:inrender'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:52:in render_with_layout' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:38:inrender_template'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:12:in block in render' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:22:inwrap_formats'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:9:in render' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:36:inrender_template'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:17:in render' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:120:in_render_template'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_controller/metal/streaming.rb:250:in _render_template' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:114:inrender_to_body'
/home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_controller/metal/renderers.rb:30:in render_to_body' /home/tomasko/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_controller/metal/compatibility.rb:43:inrender_to_body'
....

Many thanks for fast responce

Hi

On 23 September 2011 05:20, fillky <
reply@reply.github.com>wrote:

Hi I try to use you example but it seems not working. I am only beginner in
rails so maybe it is my mistake but please give some advice. Here are some
errors:
RuntimeError in Latex_example#index

From input.log
No such file or directory - pdflatex:

You need to have LaTeX installed on your computer and in particular you
need to have the pdflatex command on your executable PATH. I recommend the
texlive package.

Cheers

Geoff

On 23 September 2011 21:34, fillky <
reply@reply.github.com>wrote:

Thanks for help. I installed texlive as you mentioned but there is another
problem. Here is log. If you cen please give me some advice how to resolve
it. Thanks again...

...
! LaTeX Error: File `lastpage.sty' not found.

You will need to install additional texlive packages in order to run the
demos. For instance I am using an Ubuntu system and need to at least
install texlive-latex-extra to get the demos to work.

Hope that helps

Geoff