[OS X TeX] Paths

Peter Dyballa Peter_Dyballa at Web.DE
Mon Nov 29 05:41:16 EST 2004


Am 29.11.2004 um 10:25 schrieb Martin A.Gross B.:

> Dear colisters,
>
> I've been trying to set global paths (OS 10.1.5.) for latex. Following 
> some instructions I wrote at the beginning of  the 
> /usr/share/init/tcsh/rc
>
> 	set path = ( ${path} /usr/local/TeX/bin/powerpc-darwin5.3 )
> 	setenv PATH /usr/local/TeX/bin/powerpc-darwin5.3:$PATH

Be aware that you are mixing things! The 'set path' clause is correct 
for csh and tcsh. For compatibility reasons the create olut of $path 
$PATH for sh, bash, ksh. And the next is that you have to be sure that 
you're still using an /etc/csh.cshrc that sources 
/usr/share/init/tcsh/rc!

Next problem: are your TeX binaries really in 
/usr/local/TeX/bin/powerpc-darwin5.3? I'd expect them in 
/usr/local/teTeX/bin/powerpc-apple-darwin-current (that's only a 
symbolic link, but it always points to the version of binaries that are 
correct for my system).

The scheme with sourcing files from /usr/share/init/tcsh has vanished 
from later Mac OS X versions. So I'd recommend to do it like Gerben 
Wierda's i-Installer does it, adding

> ## TeX modifications start at Tue Nov 23 12:23:38 CET 2004
> ## Do not remove the previous line
> if ("${uid}" != "0") then
>   set path = ( ${path} 
> /usr/local/teTeX/bin/powerpc-apple-darwin-current )
> endif
> ## Do not remove the next line
> ## TeX modifications end at Tue Nov 23 12:23:38 CET 2004

(do you see the date of my last upgrade/update?) to /etc/csh.login and 
adding

> ## TeX modifications start at Tue Nov 23 12:23:38 CET 2004
> ## Do not remove the previous line
> if [ `whoami` != "root" ]
> then
>   PATH="$PATH:/usr/local/teTeX/bin/powerpc-apple-darwin-current"
>   export PATH
> fi
> ## Do not remove the next line
> ## TeX modifications end at Tue Nov 23 12:23:38 CET 2004

to /etc/profile for the world of sh, bash, ksh.

>
> But after that, when I write on the terminal:
> 	latex ~/Desktop/prueba.tex
>
> I get this answer:
> 	latex: command not found
>
> What's going wrong?

You could invoke in Terminal: 'printf "Der Pfad ist\n\t<<%s>>mit einem 
path von\n\t>>%s<<\n...\n" $PATH "$path"' to see whether your setting 
worked at all ...

--
Greetings

   Pete                                           0
                                            %-/\_//
                                             (*)(*)

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list