# PGF/TikZ externalization on ubuntu does not generate a separate PDF-file

I am trying to compile my document on my ubuntu 18.04 system with TikZ's externalization enabled, but it won't generate separate PDFs for the figures. Interestingly, it works smoothing on my Windows system. I am using texstudio (2.12.6 @ ubuntu) calling

pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %.tex


here is a MWE:

\documentclass{scrbook}
\usepackage[english]{babel}

\usepackage{tikz}
\usetikzlibrary{external}
%\tikzexternalize[prefix=tikz_external_figs/]

\begin{document}
This is a test document.

\begin{figure}
\tikzexternalenable
\tikzsetnextfilename{testtikzenableMax} %% set filename tikz externalize
\begin{tikzpicture}
\draw[->] (0,0) -- (10,2);
\end{tikzpicture}
\end{figure}
\end{document}


The process ended normal. So, I searched the whole system but were unable to find a testtikzenableMax.pdf file, nor an .md5 or .dvi file. The bug is killing me as I ran out of ideas nor do I understand, why this should be a system-dependent behavior.

Log-file: TEST.log

UPDATE: TeX Live 2019 (including pdftex 3.14159265-2.6-1.40.20) log-file

• Can you please show us your log file? You can take help of sites like pastebin. – Niranjan Dec 26 '19 at 12:55
• @Niranjan, thx nice little website. I uploaded the log-file and added a link in the post above – max Dec 26 '19 at 14:51
• You are trying to find a file with name testtikzenableMax.pdf, but your log says (on line 517) that output is written on TEST.pdf. I suggest you to check the directory (in which you have saved the .tex file) if you find any output file with name TEST.pdf. – Niranjan Dec 26 '19 at 15:25
• Also one important point, LaTeX always generates output files with the same filenames as of the source files. – Niranjan Dec 26 '19 at 15:27
• You seem to have a very old TeX installation. Does updating it help? You may also want to load \usetikzlibrary{babel}. – user194703 Dec 26 '19 at 17:05