3

After I added some fonts to tex distribution I wanted to run texhash, unfortunately the error below is showing up. I installed texlive manually using ISO image of 2017 TexLive, I used sudo to install through perl install-tl, was that a mistake?

texhash: /usr/local/texlive/2017/texmf-config: directory not writable. Skipping...
texhash: /usr/local/texlive/2017/texmf-dist: directory not writable. Skipping...
texhash: /usr/local/texlive/2017/texmf-var: directory not writable. Skipping...
texhash: /usr/local/texlive/texmf-local: directory not writable. Skipping...
texhash: Done.

Edit1: I tried sudo but not working.

usr~> sudo texhash
[sudo] password for usr:
sudo: texhash: command not found

Edit2:
Using sudo -E texhash is also giving error sudo: texhash: command not found

  • run it as superuser! – user2478 Dec 25 '17 at 5:46
  • It is not working. – Ramaprakasha Dec 25 '17 at 5:51
  • 1
    Looks like that the bin directory of TL is Not in your path. Does it work if you go first into the directory /use/texlive/2017/bin/.... and then run sudo ./texhash – user2478 Dec 25 '17 at 6:49
  • I checked. It did work. But bin directory is in my path. All other latex commands are working. This is from my .bashrc PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH; export PATH bin is already in my path. – Ramaprakasha Dec 25 '17 at 6:56
  • 1
    sudo -E will preserve the environment variables. – yudai-nkt Dec 25 '17 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.