It's not compiling at all. Giving me an error saying - pdflatex -synctex=1 -interaction=nonstopmode %.tex

I saw a similar question about this on the site. It did not help me. Please offer some advice.

If it helps, I didn't exactly download TexMaker and MikTex on my current laptop. I simply transferred MikTex and TexMaker from my old laptop to a external hard disk and then transferred it into my current laptop. Both are installed in the "Program Files" folder of the C drive. The LaTex documents are stored in the F drive (which k fragmented). Please let me know what to configure in the configures dialogue box if that's causing the error.


  • This should compile, apart from a warning about the missing X.tex file (at least for me
    – user31729
    Jun 7, 2016 at 15:52
  • @ChristianHupfer it isn't for me. Please help. What should I configure in the configure dialogue box ?"
    – Saikat
    Jun 7, 2016 at 15:57
  • Sorry, I don't use MikTeX etc on Windows
    – user31729
    Jun 7, 2016 at 15:58
  • What happens if you open a command prompt and enter pdflatex? Jun 7, 2016 at 20:59

1 Answer 1


The reason for your problem is a Windows reason: you can not copy an installed program from computer A to computer B. That can be possible with UNIX, but not with Windows.

Windows needs to install several files into a special system drive. Theese files are missing when you did your copy.

So please delete all this files, download the MiKTeX installer you need (I suggest to install the complete MiKTeX) from the MiKTeX homepage, install MiKTeX and run afterwards (you have to do that, do not forget it!) the MiKTeX package manager to be sure all installed packages are up to date.

Then download the installer for your editor and install it.

Then you will be able to compile your code ...

  • Can I copy these special system drive files too ?
    – Saikat
    Jun 8, 2016 at 1:38
  • Thanks. I installed and installed it again and it's compiling now. Can you tell me what to do in the font encoding section ? It's set to UTF-8 but some tutorials recommend ISO-8859-1.
    – Saikat
    Jun 8, 2016 at 4:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .