pdflatex not found. pdflatex is needed for pdf output
Asked Answered
S

2

16

I have installed my shiny server on Ubuntu. In addition I installed Texlive- full 2017 on the server as well. The problem is that downloading report from the shiny app on the server does not work (on my local computer is working !!!) the error is :

pandoc: pdflatex not found. pdflatex is needed for pdf output.
Warning: Error in : pandoc document conversion failed with error 41

I followed this steps as well to create the symbolic link, but nothing has changed !

my pdflatex is in this path :

/usr/local/texlive/2017/bin/x86_64-linux  

so I have create the symbolic linke like :

ln -s /usr/local/texlive/2017/bin/x86_64-linux  /usr/texbin

and I have added the usr/texbin to the path. Can anyone could tell me what I am missing here ?!!

Slideaction answered 19/10, 2017 at 13:18 Comment(1)
Just installing texlive-latex-base should be sufficient. What's the output of which pdflatex? Is the pdflatex binary in /usr/texbin?Annabelannabela
D
31

sudo apt install texlive-latex-base seems to install pdflatex.

Duyne answered 19/4, 2018 at 22:12 Comment(3)
You also need two more packets or you will get some font related errors. apt-get install texlive-latex-recommended texlive-fonts-recommendedBrooklyn
in addition to texlive-latex-recommended and texlive-fonts-recommended, I also had to install texlive-latex-extra (on ubuntu)Aflutter
These methods still work end-July 2023 (Ubuntu 22.04 LTS). Thanks all!Cosetta
K
-1

Install TexLive 2023 with pdflatex I posted the full code to install pdflatex easily and working -> https://gist.github.com/rain1024/98dd5e2c6c8c28f9ea9d#gistcomment-4711349

Kirshbaum answered 4/10, 2023 at 0:29 Comment(2)
meta.stackexchange.com/a/8259/997587Eulaliaeulaliah
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Botzow

© 2022 - 2025 — McMap. All rights reserved.