So I'm doing my bimonthly install of jaxodraw (check it out!) on some machine or another, which requires the LateX style file axodraw4j.sty. I tried the thing I always do:
# kpsewhich -var-value TEXMFLOCAL /usr/share/texmf-local # cp /home/cduston/Downloads/axodraw4j.sty /usr/share/texmf-local/tex/latex/ # texhash texhash: Updating /usr/share/texmf-config/ls-R... texhash: Updating /usr/share/texmf-dist/ls-R... texhash: Updating /usr/share/texmf-local/ls-R... texhash: Updating /usr/share/texmf-var/ls-R... texhash: Done.
And I think this matters too:
more ls-R % ls-R -- filename database for kpathsea; do not change this line. ./: .: ls-R tex ./tex: latex ./tex/latex: axodraw4j.sty
But, no matter what I do, I cannot get users on my system to ever be able to use axodraw4j.sty unless I put it NOT in TEXMFLOCAL, but in HOME:
$ kpsewhich -var-value TEXMFHOME /home/cduston/texmf
But like, I don't want it there, and I can't figure out why I need to clutter up my home directory with that nonesense. TEXMFLOCAL is completely empty, why would texlive require permissions like that? I should be able to READ /usr/share/texmf-local fine right? Why can't my tex installation ever see style files in that directory?
EDIT: From comments:
$ ls /usr/share/texmf-local/tex/latex axodraw4j.sty $ kpsewhich axodraw4j.sty /usr/share/texmf-local/tex/latex/axodraw4j.sty: Permission denied /usr/share/texmf-local/tex/latex/axodraw4j.sty: Permission denied
$ ls -la -rw-r----- 1 root root 70021 Jul 29 14:09 axodraw4j.sty texmf-local/tex/latex$ kpsewhich axodraw4j.sty ./axodraw4j.sty: Permission denied ./axodraw4j.sty: Permission denied /usr/share/texmf-local/tex/latex/axodraw4j.sty: Permission denied /usr/share/texmf-local/tex/latex/axodraw4j.sty: Permission denied
I copied the .sty file in there as root: -rw-r----- 1 root root 70021 Jul 29 14:09 axodraw4j.styWell that is clearly the cause of your error, you have made the file only readable by root so no user can use it. So it is an error in that file copy, not a problem with the tex distribution,