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
.bashrcPATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH; export PATHbin is already in my path. – Ramaprakasha Dec 25 '17 at 06:56/etc/profile.d/for Linux or MacOSX into/etc/path.d/– Dec 25 '17 at 07:18sudo -Ewill preserve the environment variables. – yudai-nkt Dec 25 '17 at 09:40