Simple PATH problem with TeXLive on Ubuntu

264 views
Skip to first unread message

Kyle

unread,
May 21, 2009, 1:56:24 PM5/21/09
to LaTeX Users Group
Hi All,

I recently installed two programs ("gedit-latex-plugin" and "kbibtex")
with Synaptic, and as a result my PATH was changed from my TeXLive
installation (located at /usr/local/texlive) to Ubuntu's (Jaunty,
9.04) TeX installation (at /var/lib/texmf and /usr/local/share/texmf).
In the past, all of my problems have been solved by simply setting the
path (with PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH), but not
now. Anyways, here's what happens now when I run a texhash:

kyle@kyle-laptop:~/Desktop$ sudo texhash
texhash: Updating /usr/local/share/texmf/ls-R...
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
texhash: Updating /var/lib/texmf/ls-R-TEXLIVE...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Done.
kyle@kyle-laptop:~/Desktop$

When I run a texhash without sudo, it looks for the correct
directories, though of course it doesn't work:

kyle@kyle-laptop:~/Desktop$ texhash
texhash: /usr/local/texlive/2008/texmf: directory not writable.
Skipping...
texhash: /usr/local/texlive/2008/texmf-config: directory not writable.
Skipping...
texhash: /usr/local/texlive/2008/texmf-dist: directory not writable.
Skipping...
texhash: /usr/local/texlive/2008/texmf-doc: directory not writable.
Skipping...
texhash: /usr/local/texlive/2008/../texmf-local: directory not
writable. Skipping...
texhash: /usr/local/texlive/2008/texmf-var: directory not writable.
Skipping...
texhash: Done.
kyle@kyle-laptop:~/Desktop$

Any ideas?

Thanks in advance,

Kyle

John McCabe-Dansted

unread,
May 21, 2009, 2:19:55 PM5/21/09
to latexus...@googlegroups.com
On Fri, May 22, 2009 at 1:56 AM, Kyle <kpj...@gmail.com> wrote:
> In the past, all of my problems have been solved by simply setting the
> path (with PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH), but not
...

> When I run a texhash without sudo, it looks for the correct
> directories, though of course it doesn't work:

Does
sudo bash -c "PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH texhash"
work?

--
John C. McCabe-Dansted
PhD Student
University of Western Australia

Kyle Johnson

unread,
May 21, 2009, 2:31:28 PM5/21/09
to latexus...@googlegroups.com
Thanks, John. All is repaired! Kyle
Reply all
Reply to author
Forward
0 new messages