texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

MiKtex not recongnised

Open BeerStud opened this issue 3 years ago • 12 comments

Environment

  • TeXstudio: TeXstudio 4.3.1 (git 4.3.1)
  • Qt: Using Qt Version 6.3.1, compiled with Qt 6.3.1 R
  • OS: Windows 11 PRO
  • TeX distribution: miktex

Expected behavior

Find the MiKtex distribution

Actual behavior

MiKtex not found. See screenshot attached. 2022-09-16 System Report.txt

How to reproduce

Start the program

BeerStud avatar Sep 16 '22 21:09 BeerStud

miktex detection usually works. So the question is why it does not on your system. Where is it installed ? Is %PATH% not set to miktex ?

sunderme avatar Sep 17 '22 06:09 sunderme

This is where I set the location for the MiKTeX distribution: C:\Users\gerar\AppData\Local\Programs\MiKTeX

My system report: System Report.txt

BeerStud avatar Sep 17 '22 08:09 BeerStud

you can either define the location in %PATH% which would make it know to cmd.exe as well or you can set it in txs additional search path. grafik

sunderme avatar Sep 17 '22 12:09 sunderme

Any feedback if txs is at fault or miktex removed the binaries ?

sunderme avatar Sep 25 '22 12:09 sunderme

I am at a loss as to how to proceed. I tried removing MiKTex and reinstalling it without success. I even removed TeXstudio and reinstalled it, again without success. This is highly annoying. Is there any movement on this issue? Exactly what file(s) is TeXstudio looking for to verify the existence of the MiKTeX installation? This is all happening on a Windows 11 Pro machine.

BeerStud avatar Sep 28 '22 09:09 BeerStud

According to the System Report.txt, the TeXstudio looks for the following file on your system: C:\Users\gerar\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe

What method do you use to install the MiKTeX?

hair-splitter avatar Sep 28 '22 09:09 hair-splitter

I used the "net installed 64" file. Interestingly enough, "TexWorks" finds and uses the files just fine.

BeerStud avatar Sep 28 '22 14:09 BeerStud

TeXworks uses miktex-pdftex.exe under MiKTeX, not pdflatex.exe! So even though TeXWorks is working, pdflatex.exe may be missing.

hair-splitter avatar Sep 28 '22 14:09 hair-splitter

I wanted to try and find out what the problem was. So, I used the Revo Uninstaller program to remove both MiKTeX and TeXstudio. I deleted the original downloaded files, cleaned all temp directories, and rebooted the system. Next, I downloaded the MiKTeX Net Installer and ran that. It created a directory filled with hundreds of files. I did not yet attempt to do the actual installation of MiKTeX. I checked for the existence of both miktex-pdftex.exe and pdflatex.exe. Neither one existed; however, pdflatexpicscale.tar.lzma was present.

I am not sure what my next move is. Should I move this over to the MiKTeX support board? It looks like this might be their problem.

BeerStud avatar Sep 29 '22 14:09 BeerStud

I checked, the MiKTeX Net Installer for Windows 64 (setup-5.1-x64.exe) does not generate pdflatex.exe. This is the cause of all your troubles. Use Basic Installer, it works.

hair-splitter avatar Sep 29 '22 14:09 hair-splitter

I had to install miktex and more a dozen times in the win10 pro sandbox, so I could build Txs. To speedup setup process, I made several notes. Here's what I have for miktex:

MiKTeX: goto https://miktex.org/download where you immediately find basic-miktex-22.7-x64.exe. Run and choose following options: 1. Install for me (very important) 2. I choose "installe packages on the fly", go on, do not donate. 3. After running miktex console we see an "error" message. Click Ok, then under Updates click "Update now". 4. This takes a while ... 5. Close the console when you are asked to do so. TeXstudio: install it after miktex.

Output of echo %PATH% should contain C:\Users\gerar\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64. When I search this directory on my maschine I find following:

image

octaeder avatar Sep 29 '22 14:09 octaeder

so, we can close this as a miktex issue ?

sunderme avatar Oct 05 '22 17:10 sunderme

Yes, I think. This bug will be fixed in the next release of MiKTeX.

hair-splitter avatar Oct 06 '22 08:10 hair-splitter