## LaTeX forum ⇒ Texmaker and TeXstudio ⇒ Compilation fails completely Topic is solved

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
ananthcv
Posts: 2
Joined: Wed Oct 01, 2008 3:21 pm

### Compilation fails completely

Hello,

I just downloaded and installed (successfully) Texmaker (version 1.7) on my PC running on Windows XP (SP2). However, when I try and compile a LaTeX file, I get the message
Error: Could not start the command.

I cannot seem to figure out where the problem is (or what's causing Texmaker not to compile). I'd greatly appreciate any help.

Thanks!
Cande Ananth

Stefan Kottwitz
Posts: 9281
Joined: Mon Mar 10, 2008 9:44 pm
Hi Cande Ananth,

welcome to the board!

Did you install a LaTeX Distribution? TeXmaker is just an editor that's using a LaTeX Distribution like TeX Live or MiKTeX. I recommend to install MiKTeX on Windows, for information have a look on its homepage.

Stefan

ananthcv
Posts: 2
Joined: Wed Oct 01, 2008 3:21 pm
But of course! Thanks, Stephan, for the clarification. Texmaker works great now that I have MikTex installed.

Thanks!
cva

spurta
Posts: 10
Joined: Sat Oct 24, 2009 11:36 am
I am having the same error when I create new documents in TeXmaker since I have upgraded to MiKTeX 2.8.

All the documents that have compiled and displayed previously are working but the new documents do not, even if I copy the contents of the working file to the new file. I do not know what the problem is, any help please?

lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm
In all probability, you need to change your path. (Presumably, it still thinks MiKTeX is in your MiKTeX 2.7 directory, and the old ones still work because they're just opening the PDF files you've compiled before.)

1. Make sure Miktex 2.8 bin is in the path (an environment variable). See here for Windows XP. Most likely, you'll just have to find the MiKTeX 2.7 folder in the path and change it to 2.8.
2. If it is, then maybe you have to change the TeXmaker command that calls PDFLaTeX. Go to Options -> Configure TeCmaker -> Commands

Change the PDFLaTeX command to something like:
`pdflatex -interaction=nonstopmode %.tex `

(Assuming that you've set your path correctly, it should just know what PDFLaTeX is.)

spurta
Posts: 10
Joined: Sat Oct 24, 2009 11:36 am

I have tried all that, even un-installing and re-installing MiKTeX again. I have started a new topic here which explains my problem a little better.

viewtopic.php?f=21&t=6904

It is very confusing...

SteveC
Posts: 2
Joined: Mon Mar 26, 2012 4:29 pm
I'm having a similar problem to the user above, but I don't understand the solution suggested here. My PDFLaTeX command was already set to:
`pdflatex -interaction=nonstopmode %.tex `

How do I find the Miktex 2.9 binaries? To which directories must you set the commands?

lalop wrote:In all probability, you need to change your path. (Presumably, it still thinks MiKTeX is in your MiKTeX 2.7 directory, and the old ones still work because they're just opening the PDF files you've compiled before.)

1. Make sure Miktex 2.8 bin is in the path (an environment variable). See here for Windows XP. Most likely, you'll just have to find the MiKTeX 2.7 folder in the path and change it to 2.8.
2. If it is, then maybe you have to change the TeXmaker command that calls PDFLaTeX. Go to Options -> Configure TeCmaker -> Commands

Change the PDFLaTeX command to something like:
`pdflatex -interaction=nonstopmode %.tex `

(Assuming that you've set your path correctly, it should just know what PDFLaTeX is.)

Stefan Kottwitz
Posts: 9281
Joined: Mon Mar 10, 2008 9:44 pm
Hi Steve,
SteveC wrote:How do I find the Miktex 2.9 binaries?

it may depend on your Windows version and where the programs directory is, but try:

`C:\Program Files (x86)\MiKTeX 2.9\miktex\bin`

Stefan

santimonto
Posts: 4
Joined: Sat May 19, 2012 1:44 am
I have a problem running the Asymptote command for the "PDFLaTeX + Asymptote + PDFLaTeX + View PDF" compiling.

I tried adjusting the default way asy %.asy but it says that it cannot start the command. I also tried the path to the usual "C:\Program Files\Asymptote\asy.exe" "?am.asy" and also doesn't work. What else could I do?

AlfredoCxx
Posts: 1
Joined: Fri Jul 18, 2014 12:32 am
Good afternoon, I have a problem with the build, I installed Mik Tex and Tex Maker but when compiling send me a message that the file does not locate.
I have added the path in the direction of "pdfplatex" but still does not work.