You are not logged in.
Pages: 1
Hi,
I have a problem with my current installation of TeX-live I got from following the wiki. I always get permission errors every time I try to compile a tex file regardless of the engine (latex, pdflatex, xelatex).
`latex main.tex` gives me:
/var/lib/texmf/ls-r: Permission denied
/var/lib/texmf/ls-R: Permission denied
/var/lib/texmf/aliases: Permission denied
[...]
Output written on main.dvi (1 page, 380 bytes).
Transcript written on main.log.But if I try with `pdflatex main.tex`, I get:
[...]
gsftopk: fatal: map file `psfonts.map' not found.
mktexpk: don't know how to create bitmap font for ptmr8r.
mktexpk: perhaps ptmr8r is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
)
!pdfTeX error: pdflatex (file ptmr8r): Font ptmr8r at 480 not found
==> Fatal error occurred, no output PDF file produced!Even though `sudo kpsewhich --engine=pdflatex --all psfonts.map` still finds something `/var/lib/texmf/fonts/map/dvips/updmap/psfonts.map
` and running `sudo pdflatex main.tex` works fine.
Additionally, when I type tllocalmgr, I get:
Cannot open /var/lib/texmf/arch/installedpkgs/texlive-bibtexextra_63023.pkgs!but `sudo tllocalmgr` gets me:
You can't run this program as rootIs there a solution to fixing these permission problems? Typing `sudo pdflatex` from the command line gets quickly old when I'm working inside emacs. Thanks.
Last edited by Yann21 (2022-10-31 06:29:09)
Offline
Compiling with sudo *will* cause problems.
pacman -Qkk <tex-packages-you-installed>CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Good news, I found the solution!
pacman -Qkk texlive-core
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (Modification time mismatch)
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (Size mismatch)
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (MD5 checksum mismatch)
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (SHA256 checksum mismatch)
warning: texlive-core: /var/lib/texmf (Permissions mismatch)
warning: texlive-core: /var/lib/texmf/arch (Permission denied)
warning: texlive-core: /var/lib/texmf/arch/installedpkgs (Permission denied)
warning: texlive-core: /var/lib/texmf/arch/installedpkgs/texlive-core.fmts (Permission denied)
warning: texlive-core: /var/lib/texmf/arch/installedpkgs/texlive-core.maps (Permission denied)
warning: texlive-core: /var/lib/texmf/arch/installedpkgs/texlive-core_63035.pkgs (Permission denied)
texlive-core: 30880 total files, 6 altered filesI realized there was a permission mismatch on /var/lib/texmf. After reinstalling texlive-core, pacman told me that files inside /var/lib/texmf should have permission 755. So I solved the issue by running chmod 755 on the folder and the compilation is back to normal.
Thanks!
Last edited by Yann21 (2022-10-31 06:28:34)
Offline
Pages: 1