## Couldn't start the command (On Mac)

2011-10-24
2012-10-17
• Ming-Hua Chung - 2011-10-24

Hi, all,

After I installed TeXstudio(version 2.2) on my iMac, everything works great
until I tried to compile the .tex file.
It kept showed my the following message:

Error: Could not start the command: latex -src -interaction=nonstopmode
"FRETNOTE".tex
Error: Could not start the command: pdflatex -synctex=1
-interaction=nonstopmode "FRETNOTE".tex

I guessed it might relate to the configuration of commands, but I wouldn't
you know what the problem is.

It works on my windows XP laptop. And, I really really like TeXstudio to work
on my Mac for its color and auto-filled functions.This may be a stupid
question, but I tried to search online without any luck.

Best,

Michael

• raghava - 2011-10-29

I have the same problem. I am able to run pdflatex, latex, ps2pdf commands
from the command line.

@OP, did you resolve this issue?

How can I configure TeXstudio?

• Jan Sundermeyer - 2011-10-30

texstudio latex commands.

• raghava - 2011-10-30

Yes, I did that. Now, I get the following errors

1) Undefined control sequence \documentclass
2) Undefined control sequence \begin
3) Undefined control sequence \section

Is there any other configuration setting that I am missing?

• Jan Sundermeyer - 2011-10-30

where do you get "undefined control sequence" ?

• raghava - 2011-10-30

I created a latex file just for testing. I use the pdfLatex option. Then I get
the above mentioned errors. Following is the latex file I have

\documentclass{article}
\begin{document}
\section{Notes on the new approach}
This is a dummy section.
\end{document}

What am I missing?

• Jan Sundermeyer - 2011-10-30

i suppose that you try to compile said file using pdflatex.
What did you put in the field options/tools/pdflatex ?

• raghava - 2011-10-30

Yes, I am using pdfLatex to compile it. Should I use something else?

I set the path to the commands under the following menu -- Options/Configure
TeXstudio.../Commands

pdfLatex path: "/usr/local/texlive/2011/bin/x86_64-darwin/pdftex" -synctex=1
-interaction=nonstopmode %.tex
Latex also has the same path.

seems like in my tex directory, pdflatex and latex are aliases to pdftex

• Jan Sundermeyer - 2011-10-30

you need to set the command as "pdflatex" (the program detects what alias was
used and behaves accordingly, pdftex is not pdflatex ...)

• raghava - 2011-10-30

wow!! Cool, I got it :). After changing the aliases back to their actual names
(pdflatex and latex), I am able to compile and view the pdf. Thank you for the
help.

Now that I got the initial setup and test out of the way, I guess I need to go
through the manual to see how to use TeXstudio's other features.

Thanks again.

• Ming-Hua Chung - 2011-11-18

Thank you so much, both of you. I solved most of my problem.

• Anonymous - 2012-03-09

Same problem here. On a previous mac, I ran TexMakerX with MacTex distribution
2010 with no problem. This version doesn't seem to compile correctly. Can
anyone suggest a quick fix, or is the version fouled up?

• Anonymous - 2012-03-09

Nevermind, didn't see the prevtious reply. Not sure why the default is set as
it is. Both the alias for pdftex and pdflatex go to the same actual file:
pdftex. By typing in pdflatex instead, the problem was solved.

• Nobody/Anonymous - 2012-05-15

Was struggling with a similar problem, until my office mate asked me what file
extension i had. Confirm that the file you are compiling is a .tex file (e.).
If not just add the .tex extension to it.
Did you recently change the name of the file?
I hope this solves your problem and that of many others.

Tonny.