When I am trying to 'quick build' my document in TeXstudio 2.1 on Mac OS X 10.6.8, I am getting and error: could not start the command
(with 'quick build' options being LaTeX + DviPdf + PdfViewer). I know that this question has resonated across different forums:
- Latex community – Texmaker compilation error
- Souceforge for TeXstudio – Couldn't start the command (On Mac),
and I realized that the key to solution is to set the right commands paths in options > configure texstudio > commands
– the image below shows exactly how I set it up. So I set ALL command paths to /usr/texbin/latex
, Now, the error disappears, TeXstudio starts the compilation process, but never finishes – it simply freezes in the compilation process.
I have to add I compiled the document in TeXShop and it works fine, so… it must be something I messed up with the command paths…
Best Answer
Paths for a MacTeX distribution
The following settings should work:
If you have updated to a recent MacTeX and need to change them all at the same time, you can quit out of the app and edit the
texstudio.ini
file which is stored in~/.config/texstudio
. This is a plain text file and you can then do a global replace of the old path with/Library/TeX/texbin
.Paths for other types of distributions
If you are using any other TeX distribution, for example MacPorts or Fink, you will need to change
/usr/texbin/
to the relevant path in that particular distribution. In MacPorts it is/opt/local/bin/
.I would not recommend using such a distribution, however, as they are generally harder to keep updated.
Screenshot