Why does Texmaker fail to compile in Desktop tree with 'logfile not found' error on macOS?

This is on a macbookpro m2. Sequoia 16.5. mactex-2025. temaker 6.01. I believe this is some kind of a security issue. The same 7 line xxx.tex file compiles fine with mactex in ~/tmp or on a network share. get-info on /Applications/texmaker.app shows my user has read-write, admin has read-write no, everyone else no access.



[Re-Titled by Moderator]

Original Title: texmaker will not work in the ~/Desktop tree. Any compiles error with a pair of 'logfile not found' messages.

MacBook Pro 14″, macOS 15.5

Posted on Jun 5, 2025 1:03 AM

Reply
13 replies

Jun 5, 2025 1:22 AM in response to glentrobc

It seems that some tex file does not compile when stored somewhere under ~/Desktop.

Do you have your Documents and Desktop in iCloud? I wonder if that is playing a role.


Try this: create a new folder inside your home drive, and put the file there. Does it compile?


To further troubleshoot this, it might help if we can see a minimal example of a file that fails to compile; or at least a copy of the log file, so we can see exactly the error.

If you are willing to share the log file, use the "additional text" button below the message area:


and copy and paste the whole log there.

Jun 5, 2025 7:49 AM in response to Luis Sequeira1

My testfile compiles fine in any of /Users/xxx except for Users/xxx/Desktop. It also compiles fine when the testfile is on a share from another Mac or Linux NAS.

The test file is:

\documentclass{article}

\begin{document}

Hello World!

\end{document}

When I compile on the ~/Desktop tree I get the following results with Texmaker

Quick Build → ‘Could not start the command “pdflatex” -synctex=1 -interaction-nonstopmode % tex’

Latex or Pdflatex → 2 ‘Log File not found!’ messages [ok exit]


Note that pdflatex from cli or texshop works fine from the ~/Desktop tree

Jun 5, 2025 6:39 AM in response to glentrobc

The last version of TEXMAKER (e.g. 6.0.1) was released in April 2025 as an ARM Apple Silicon binary. If you are using an older Intel version (e.g 5.1.4) or have attempted to build it from source code, you are in the weeds and need to download and install the current binary version above. Texmaker is not part of the official MacTeX 2025 package and it is written in C++/Qt6.

Jun 6, 2025 3:10 AM in response to glentrobc

I am puzzled.


I was able to reproduce the 2 "log file not found" errors, but that was because the machine in question did not have TeX installed. Once I installed it, files do compile, regardless of location.


The errors you are getting suggest TeXMaker is not being able to find the required tool (pdflatex). But it's weird that this only happens when the file to typeset is saved in some locations and not others!


Sorry, at the moment I don't know what to suggest, other than perhaps using a different program, like TeXShop, or TeXWorks, instead of TeXMaker. The other options are very much more integrated into the Mac; TeXMaker's appeal is perhaps it being cross platform. At times I had suggested this to students because they were using different OS; but nowadays I'd point them to online tools like overleaf.com or scienhub.com instead.

Jun 6, 2025 4:33 AM in response to Luis Sequeira1

One can install MacTeX using Homebrew package manager and on an Apple Silicon Mac, that would likely cause the distribution to be installed in the /opt/homebrew tree rather than the normal /usr/local tree when installed as a direct download from the MacTeX site. TEXMAKER may misbehave if MacTeX 2025 was installed by Homebrew, another package manager, or by not directly using the MacTeX installer download.

Jun 6, 2025 6:56 AM in response to VikingOSX

VikingOSX wrote:

One can install MacTeX using Homebrew package manager and on an Apple Silicon Mac, that would likely cause the distribution to be installed in the /opt/homebrew tree rather than the normal /usr/local tree when installed as a direct download from the MacTeX site. TEXMAKER may misbehave if MacTeX 2025 was installed by Homebrew, another package manager, or by not directly using the MacTeX installer download.


You may have a point there. I don't know about the OP; I stay clear of homebrew as much as possible, and in the case of TeX, I cannot see why one would use anything other than mactex to install. It is straightforward, installs the current TeXLive distribution, uses a standard mac installer, knows to set all the paths correctly. It also includes TeXShop, BibDesk, and LaTeXiT (not that it would be hard to install them separately, but saves some time).

Jun 5, 2025 8:17 AM in response to glentrobc

I don't have TeXMaker installed on my mac, as I use TeXShop almost exclusively.

I am not going to install on my main machine, but I installed on a second mac to test.


I will try this later today, and will report what I find.


Can you post screenshots from TeXMaker->Preferences, namely to see what is the option selected for Quick Build, and the exact commands used for latex and pdflatex?

Jun 5, 2025 8:52 AM in response to glentrobc

The correct and current MacTeX 2025 pdflatex syntax is:

pdflatex -synctex=1 -interaction=nonstopmode foo.tex


Depending on the \usepackage involved, TeX source (e.g. .tex) may work better being typeset with LuaLaTeX or XeLaTeX than pdflatex. Often, the package developer will state this in their package documentation.


This is among the reasons I use TeXShop which gives me menu access to various typesetters.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why does Texmaker fail to compile in Desktop tree with 'logfile not found' error on macOS?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.