I already downloaded and installed TeXlive 2008 from tug.org/texlive
by default it is installed in /usr/local
after installation, if I would open a terminal and say xelatex, it would not recognise the command, so this what I did

creating a custom .xesession)
1)* Open a terminal by opening the Applications menu, select Accessories, and then click Terminal.
2) To begin editing your script, type the following command at the prompt:
gedit ~/.xinitrc
3) Put the following texts inside the tex editor:
PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH; export PATH &
MANPATH=/usr/local/texlive/2008/texmf/doc/man:$MANPATH; export MANPATH &
INFOPATH=/usr/local/texlive/2008/texmf/doc/info:$INFOPATH; export INFOPATH &
exec gnome-session
4) save the file and then cose it
5) write the following command in terminal:
chmod +x ~/.xinitrc
6) write the following command in terminal:
ln -s ~/.xinitrc ~/.xsession
after restarting my computer, I opened a terminal and wrote xelatex. This time fortunately it recognised my TeXLive installation. but if I write the following command in terminal:
sudo texhash
it gives:
sudo: texhash: command not found
but if I just say texhash, it recognises the command very well as follow:
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.
So can you please say what I need to do so that ubuntu recognises sudo texhash
Thanks
Get a FREE AOL Email account with unlimited storage. Experience Email and instant messaging together - chat while you mail and mail while you chat! Register for your free email account at http://free.aol.com.au
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users