[OS X TeX] X11

Adam R. Maxwell amaxwell at mac.com
Sat May 28 02:14:10 CEST 2005


On May 27, 2005, at 13:57, Gerben Wierda wrote:

> On 27 May 2005, at 17:39, Rodrigo Banuelos wrote:
>
>
>> I am sure the following problem has come up (and solved) before
>> but I have not been able to find it in the list. I installed Tex  
>> (using
>> Gerben Wierda's i-installer) on a new machine before installing  
>> Apple's
>> X11.  Now, when I type "latex", "tex" or xdvi on an X11 terminal I  
>> get back
>> "bash: latex: command not found," and the same for the others.  I  
>> know this
>> to do with bash vs tcsh but, what is the permanent solution?
>>
>
> It does not have to do with bash vs tcsh. The problem is that xterm  
> does not create login shells, but subshells only and as a result  
> parts of the initialization (e.g. /etc/csh.login) are not read at  
> all. Since the TeX i-Package has modified the shell login scripts,  
> you do not get the right PATH.
>
> The solutions in the other replies (re-run TeX i-Package configure)  
> will not help.
>
> There is (or at least I do not know) no generic file I could patch  
> for X11 that would change this for *all* users. And the TeX install  
> I provide is multi-user.
>
> Maybe some X11 guru can finally tell me how to do this system-wide.  
> Maybe there is some personal .xinit file where you can change  
> environment settings. I do not use X11, so I do not have the  
> knowledge.

You can replace `xterm` with `xterm -ls` in /etc/X11/xinit/xinitrc to  
start the first xterm as a login shell.  You should also change your  
X11 "Terminal" menu command to run xterm -ls, as well, so future  
shells will be login shells, but this writes to NSUserDefaults.   
Users can also create a custom .xinitrc in their home directory to  
override the system one.

-- 
Adam


--------------------- 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 macostex-archives mailing list