4

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! –  Dec 25 '17 at 05:46
  • It is not working. – Ramaprakasha Dec 25 '17 at 05: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 –  Dec 25 '17 at 06: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 06:56
  • That is you path (bad idea to place this in bashrc, btw, th n the path may not work for programs you start from a menu), but that path is not the path used by the superuser – daleif Dec 25 '17 at 07:13
  • yo should set that path into /etc/profile.d/ for Linux or MacOSX into /etc/path.d/ –  Dec 25 '17 at 07:18
  • 2
    sudo -E will preserve the environment variables. – yudai-nkt Dec 25 '17 at 09:40
  • @Herbert I saw your answer here. https://tex.stackexchange.com/questions/27922/setting-the-path-to-textlive-installation-round-2/27934#27934 and used it. But still problem persists. – Ramaprakasha Dec 26 '17 at 09:08
  • @yudai-nkt Your solution is giving same error which I have mentioned in Edit1 of my question. – Ramaprakasha Dec 26 '17 at 09:08

0 Answers0