0

enter image description hereI'm using texstudio on Mac for a long time and everything used to work well. Suddenly, I get the following error message for every tex file I try to run:

Error: Could not start the command: pdflatex -synctex=1 -interaction=nonstopmode "filename".tex

I believe it happened after I made some changes to my python installations on the computer. Any idea?

  • Can you show the "Commands" tab of your texstudio preferences? – samcarter_is_at_topanswers.xyz Jan 26 '19 at 18:00
  • As a test: does pdflatex -synctex=1 -interaction=nonstopmode filename work from terminal? – samcarter_is_at_topanswers.xyz Jan 26 '19 at 18:01
  • I'm not sure how to use latex in the terminal. I uploaded the folder in the current directory and then past the command you suggested. I got the massege: -bash: pdflatex: command not found – Muly Jan 26 '19 at 18:08
  • I’d guess that the changes made to the python installation played with you PATH variable and you lost /Library/TeX/texbin. What exactly did you change? – Herb Schulz Jan 27 '19 at 20:42
  • After a few hours of searches I found the right path: "/usr/local/texlive/2016/bin/x86_64-darwin/pdflatex". Thanks a lot! – Muly Jan 27 '19 at 20:47
0

I had the same problem. I could resolve the problem by restoring to default setting using "Preferences > Command" and then the yellow buttons. See the following thread for more information.

Error: TexStudio "Could not start command"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.