Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiKtex not recongnised #2585

Closed
BeerStud opened this issue Sep 16, 2022 · 14 comments
Closed

MiKtex not recongnised #2585

BeerStud opened this issue Sep 16, 2022 · 14 comments

Comments

@BeerStud
Copy link

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

@sunderme
Copy link
Member

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 ?

@BeerStud
Copy link
Author

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

My system report:
System Report.txt

@sunderme
Copy link
Member

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

@hair-splitter
Copy link

I think this is the problem:
MiKTeX/miktex#1159
MiKTeX/miktex#1183

@sunderme
Copy link
Member

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

@BeerStud
Copy link
Author

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.

@hair-splitter
Copy link

hair-splitter commented Sep 28, 2022

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?

@BeerStud
Copy link
Author

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

@hair-splitter
Copy link

hair-splitter commented Sep 28, 2022

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

@BeerStud
Copy link
Author

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.

@hair-splitter
Copy link

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.

@octaeder
Copy link
Contributor

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

@sunderme
Copy link
Member

sunderme commented Oct 5, 2022

so, we can close this as a miktex issue ?

@hair-splitter
Copy link

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

@sunderme sunderme closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants