LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2011, 06:50 PM   #1
cryptonoia
LQ Newbie
 
Registered: Dec 2010
Location: Virginia
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Kile can't find pdflatex etc as user


Running slackware-current with KDE 4.5.5 and Kile 2.0.83b with texlive 2010. I'm unable to "compile" .tex files as a normal user. I get the error
Quote:
[PDFLaTeX] finished with exit code 127
Cannot open log file; did you run LaTeX?
Under the "Output" tab, I get
Quote:
/bin/sh: pdflatex: command not found
Which doesn't make any sense, as I'm able to run pdflatex from bash and it compiles fine. My path contains the texlive binary directory.

Incidentally, when I run Kile as root and try to run PDFLaTeX on the same file it compiles without an error.

I've googled around and the problems I find are either unrelated, unsolved, or the solutions are inapplicable.
 
Old 04-16-2011, 07:32 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Run "Settings -> System Check".

I had installed LaTeX and friends via my package manager, and the executable files were installed in /usr/bin/ which is in my path, so Kile has no problem finding files. It does seem (from the error) that the location of pdflatex isn't in your PATH.

Perhaps Kile resets the environment for security reasons, when it launches pdflatex in the shell.
You might try explicitly adding the path to the commands in the Configure -> tools/build configuration.

---
update: I kept digging. On my system, the pdflatex command is supplied by the texlive-bin-latex package instead of the texlive package. The binaries in /usr/bin/ are symbolic links to the texlive binaries.
Code:
lrwxrwxrwx 1 root root 33 Mar 11 06:11 /usr/bin/asy -> ../lib/texmf/bin/x86_64-linux/asy
lrwxrwxrwx 1 root root 36 Mar 11 06:11 /usr/bin/bibtex -> ../lib/texmf/bin/x86_64-linux/bibtex
lrwxrwxrwx 1 root root 37 Mar 11 06:11 /usr/bin/bibtex8 -> ../lib/texmf/bin/x86_64-linux/bibtex8
lrwxrwxrwx 1 root root 39 Mar 23 22:17 /usr/bin/cslatex -> /usr/lib/texmf/bin/x86_64-linux/cslatex
lrwxrwxrwx 1 root root 37 Mar 23 22:17 /usr/bin/latex -> /usr/lib/texmf/bin/x86_64-linux/latex
lrwxrwxrwx 1 root root 40 Mar 23 22:17 /usr/bin/lualatex -> /usr/lib/texmf/bin/x86_64-linux/lualatex
lrwxrwxrwx 1 root root 39 Mar 11 06:11 /usr/bin/makeindex -> ../lib/texmf/bin/x86_64-linux/makeindex
lrwxrwxrwx 1 root root 39 Mar 23 22:17 /usr/bin/mllatex -> /usr/lib/texmf/bin/x86_64-linux/mllatex
lrwxrwxrwx 1 root root 42 Mar 23 22:17 /usr/bin/pdfcslatex -> /usr/lib/texmf/bin/x86_64-linux/pdfcslatex
lrwxrwxrwx 1 root root 40 Mar 23 22:17 /usr/bin/pdflatex -> /usr/lib/texmf/bin/x86_64-linux/pdflatex
lrwxrwxrwx 1 root root 38 Mar 23 22:17 /usr/bin/platex -> /usr/lib/texmf/bin/x86_64-linux/platex
Creating missing symbolic links in /usr/bin/ to the binaries in your texlive bin directory should fix the problem.

Last edited by jschiwal; 04-16-2011 at 07:42 PM.
 
Old 04-16-2011, 07:52 PM   #3
cryptonoia
LQ Newbie
 
Registered: Dec 2010
Location: Virginia
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
First of all, thanks for your quick response. Here's the output of System Check:
Quote:
[TeX]
mustpass=where,basic,kile
executable=tex
where=
version=
basic=127

[PDFTeX]
mustpass=
executable=pdftex
where=
basic=127

[LaTeX]
mustpass=where,basic,kile
executable=latex
where=
basic=127

[PDFLaTeX]
mustpass=
executable=pdflatex
where=
basic=127

[DVItoPS]
mustpass=
executable=dvips
where=

[DVItoPDF]
mustpass=
executable=dvipdfmx
where=

[PStoPDF]
mustpass=
executable=ps2pdf
where=/usr/bin/ps2pdf

[BibTeX]
mustpass=
executable=bibtex
where=

[MakeIndex]
mustpass=
executable=makeindex
where=

[Okular]
mustpass=where
executable=okular
version=0.11.2
okular=0
where=/usr/bin/okular

[Acroread]
mustpass=
executable=acroread
where=

[DVItoPNG]
mustpass=
executable=dvipng
where=

[Convert]
mustpass=
executable=convert
where=/usr/bin/convert
Note that for PDFLaTeX executable=pdflatex, though I had explicitly set it to /usr/share/texmf/bin/pdflatex.

Once I noticed your update, I tried symlinking pdflatex and it worked. I'll repeat this procedure for the other tools in /usr/share/texmf/bin. Is there a quicker way to do this, or do I just need to do this one by one?

---------- Post added 04-16-11 at 07:53 PM ----------

Oh, and thanks for your help, by the way.
 
Old 04-16-2011, 08:21 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I posted the results based on the package contents of the binaries in /usr/bin/ supplied by texlive-bin-latex. If you link the binaries I posted, or at least the ones listed in the Kile config you posted, that should be enough. There are many more binaries in the texlive binary directory, and not all are linked. This command will create the links. Remove the ones already set:
Code:
sudo ln -s /usr/local/texmf/bin/{tex,pdftex,latex,pdflatex,dvips,dvipdfmx,bibtex,makeindex,dvipng} /usr/bin/
 
1 members found this post helpful.
Old 04-16-2011, 08:24 PM   #5
cryptonoia
LQ Newbie
 
Registered: Dec 2010
Location: Virginia
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
I decided to link only those that System Check complained about and Kile runs like a dream now. Thanks much.
 
Old 06-20-2012, 11:25 AM   #6
abe08
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
[help] I have some problem like this

I use kile. But, I have some problem.

Cannot output the result.

I'm going to system check and get the output like this :
#script:runTests.sh
#basedir:/tmp/kde-raziabe/kile1L2LlW/

[TeX]
mustpass=where,basic,kile
executable=tex
where=/usr/bin/tex
version=3.1415926
basic=0
kile=0

[PDFTeX]
mustpass=
executable=pdftex
where=/usr/bin/pdftex
basic=0
kile=0

[LaTeX]
mustpass=where,basic,kile
executable=latex
where=/usr/bin/latex
basic=0
kile=0
src=0

[PDFLaTeX]
mustpass=
executable=pdflatex
where=/usr/bin/pdflatex
basic=0
kile=0

[DVItoPS]
mustpass=
executable=dvips
where=/usr/bin/dvips
kile=0

[DVItoPDF]
mustpass=
executable=dvipdfmx
where=/usr/bin/dvipdfmx
kile=0

[PStoPDF]
mustpass=
executable=ps2pdf
where=/usr/bin/ps2pdf

[BibTeX]
mustpass=
executable=bibtex
where=/usr/bin/bibtex
basic=0
kile=0

[MakeIndex]
mustpass=
executable=makeindex
where=/usr/bin/makeindex
basic=0
kile=0

[Okular]
mustpass=where
executable=okular
version=
okular=1
where=

[Acroread]
mustpass=
executable=acroread
where=

[DVItoPNG]
mustpass=
executable=dvipng
where=/usr/bin/dvipng

[Convert]
mustpass=
executable=convert
where=/usr/bin/convert





thanks for your answer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using pdflatex into a bash script jmvidalvia Linux - General 2 04-08-2011 05:09 PM
Upgraded kile cannot find previously accessible documentation on Tex/Latex raespinosa2000 Linux - Software 3 04-10-2009 10:24 PM
pdflatex+Graphics bajaj Linux - Software 1 05-21-2006 12:28 PM
Images in pdflatex frontpage ObedientMonk Linux - Software 0 04-29-2004 07:45 AM
pdfLaTeX - jpeg won't show ashley8 Linux - Software 1 04-25-2004 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration