An issue with sudo

Nils Kassube kassube at gmx.net
Sun Nov 9 06:48:16 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.
>
> -----Original Message-----
> From: Joel Goguen <jgoguen at jgoguen.ca>
> Sent: Sun, 9 Nov 2008 1:42 pm
> Subject: Re: An issue with sudo
>
> On Sat, 2008-11-08 at 21:31 -0500, vafa at aol.com.au wrote:
> > So can you please say what I need to do so that ubuntu recognises
> > sudo texhash
>
> The simplest thing is to run this command in the Terminal:
>
> sudo ln
> -s /usr/local/texlive/2008/bin/i386-linux/texhash /usr/bin/texhash

It seems this link isn't very useful and you should better remove it.
Furthermore IMHO it isn't wise to add a link to /usr/bin. If you later
install TeXlive from the Ubuntu repository it may overwrite your files
in /usr/local/texlive/2008/bin/i386-linux/. It would be better to link the
binaries to /usr/local/bin/. Then packet managers don't touch those links.

Your current problem is that the executable files of that installation are
not in the PATH for root. Therefore it might work if you issue this
command instead of yours:

sudo bash -c 'export PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH;texhash'

That command should be only one line even if your mail program inserts line breaks.


Nils




More information about the ubuntu-users mailing list