Texmaker and TeXstudioTexmaker Issues

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
Mear
Posts: 2
Joined: Fri Nov 25, 2011 6:55 pm

Texmaker Issues

Post by Mear »

Hello. :)

I'm having some trouble with my fresh Texlive install, and was hoping someone could help me sort things out.

I run Ubuntu and have TeX Live installed to home. I've configured the Texmaker commands to home/**/texlive/2011/bin/x86_64-linux/latex, but it won't compile. I only get "Error : could not start the command".

If I try to run $ pdflatex ~/test.tex in the terminal, it runs just fine.

Any idea what the problem might be? I think there must be something wrong with the way I've configured Texmaker, but I can't see what.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Texmaker Issues

Post by meho_r »

Run which pdflatex command in Terminal and see which binary is listed. My guess is that it will show a binary located somewhere in /usr... or /usr/local..., which means that you have another TeXLive installed on your system and binaries from that installation are used.

That being said, if you have TeXLive installed locally (in your home dir), it might be a better idea to add its path at the end of .profile file (note the dot at the beginning) which is located in your home dir (if there is no .profile file there, create it). Here's how the last line in my ~/.profile file looks:

Code: Select all

export PATH=/home/mehor/TeXLive/bin/x86_64-linux:$PATH
Yours should be something like this (replace your_username with your actual username):

Code: Select all

export PATH=/home/your_username/texlive/2011/bin/x86_64-linux:$PATH
After adding this line to ~/.profile, log out and log in again, then try which pdflatex command again. This time, it should show /home/your_username/texlive/2011/bin/x86_64-linux/pdflatex. If that is the case, simply revert commands in Texmaker to their original latex, pdflatex etc. and they should work. Try compiling a .tex file and check its .log file to make sure your local copy of pdflatex is used.
Mear
Posts: 2
Joined: Fri Nov 25, 2011 6:55 pm

Texmaker Issues

Post by Mear »

Thanks for the reply. :)

which pdflatex returns /home/**/texlive/2011/bin/x86_64-linux/pdflatex, as it should.
I have already edited .profile, with

Code: Select all

PATH=/home/**/texlive/2011/bin/x86_64-linux:$PATH;export PATH
MANPATH=/home/**/texlive/2011/texmf/doc/man:$MANPATH;export MANPATH
INFOPATH=/home/**/texlive/2011/texmf/doc/info:$INFOPATH;export INFOPATH
And.... I suppose that's the problem. :roll: I guess I've overcompensated. I'll revert the Texmaker commands and try again.
Post Reply