An issue with sudo
Matthew Flaschen
matthew.flaschen at gatech.edu
Sun Nov 9 06:15:26 UTC 2008
vafa at aol.com.au wrote:
> thanks. but this has some problems. It gives:
>
> /usr/bin/texhash: 115: kpsewhich: not found
> texhash: Done.
The issue is that root (which sudo runs as) has a different PATH then
your username. You can either change the root path (which may be
dangerous) or do what Joel suggested for each file. This will be easier
in the zsh shell:
sudo apt-get install zsh
exec zsh
sudo ln -s =kpsewhich /usr/bin
If you get more "not found" errors, do the sudo ln -s command again in
zsh, but with whatever command is not found.
Matt Flaschen
More information about the ubuntu-users
mailing list