When trying to compile a huge pgfplot with several plots I receive the following error:
TeX capacity exceeded, sorry [main memory size=5000000]. \end{document}
There is no error in code as compiling goes completely fine when not compiling all plots in once.
To increase the mentioned main memory size on a Debian machine I found this solution:
Edit
/etc/texmf/texmf.d/00debian.cnfand add these values:main_memory = 12000000 extra_mem_bot = 12000000 font_mem_size = 12000000 pool_size = 12000000 buf_size = 12000000Run
update-texmfRun
texhash
Unfortunately, executing update-texmf delivers a command not found. Is there some other solution available to update/increase the main memory? However, the second command texhash went fine (but is useless without succeeding the first one I guess?).
ls -l /usr/sbin/update-texmf[Is the file really missing?] 2)dpkg -l tex-common[Have you installed package providing the file?] – AnFi Apr 12 '19 at 21:04sudo update-texmffirst thensudo texhashand you can try bumping up to12500000 but drop some of the others such as fonts I seem to remember its not a good idea to keep them inflated (hmm must check mine later) also review https://tex.stackexchange.com/questions/7953/how-to-expand-texs-main-memory-size-pgfplots-memory-overload – Apr 13 '19 at 01:17ls -l /usr/sbin/update-texmfdelivers a-rwxr-xr-x 1 root root 2659 Feb 28 15:28 /usr/sbin/update-texmf, so the file seems not to be missing. According to 2), executingdpkg -l tex-commonbringsii tex-common 6.11 all common infrastructure for building and installing TeX, and furthermoredpkg -s tex-commonbringsStatus: install ok installed. I guess everything should be fine here, no? – Dave Apr 13 '19 at 11:54sudo -iand thenupdate-texmf– Alejandro Salamanca Mazuelo May 29 '23 at 18:47