[OS X TeX] problem using /opt/local instead of /usr/local/

Herbert Schulz herbs at wideopenwest.com
Thu Sep 11 14:49:05 CEST 2008


On Sep 11, 2008, at 7:28 AM, Christopher Brewster wrote:

> I am using bash.
> I tried logging out and back in as Pete suggested. To no avail.
>
> What I have realised is that my $PATH has nothing to do with what is  
> in my ~/.profile file:
> christopher-brewsters-macbook-pro-15:~ kiffer$ echo $PATH
> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/ 
> bin:/usr/local/git/bin:/usr/local/git/bin/:/usr/local/bin:/usr/texbin
>
> While my .profile file has the following:
> ---
> PATH=/usr/local/Trolltech/Qt-4.3.3/bin:$PATH
> export PATH
> export PATH=/usr/local/texlive/2007/bin/:$PATH
> export PATH=/usr/local/graphviz/bin:$PATH
> GROOVY_HOME=/Users/kiffer/Library/groovy-1.5.6
> export GROOVY_HOME
> PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.5/ 
> lib/python2.5/site-packages
> export PYTHONPATH
>
> # Setting PATH for MacPython 2.5
> # The orginal version is saved in .profile.pysave
> PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$ 
> {PATH}"
> export PATH
> ---
>
> Where is my $PATH controlled from then?
>
> Christopher
>
>
>
>
>
>
> On 11 Sep 2008, at 13:13, Peter Dyballa wrote:
>
>
> Am 11.09.2008 um 13:32 schrieb Christopher Brewster:
>
>> Changes I make to ~/.profile appear to have no effect on where  
>> latex is called.
>
>
> Are you using a different shell than bash?
>
> If bash is your login shell:
>
> • did you launch TextMate anew after you changed ~/.profile?
>
> • is the behaviour different when you log off and in again?
>
>
> If bash is not your login shell, then you should make the change to  
> ~/.login. And also try to re-launch TextMate and log off and in  
> again. Some applications do not re-read initialisation files when  
> they change, some take their run time environment from Mac OS X  
> which is established only once – at login time.
>
> --
> Greetings
>
> Pete
>
> A common mistake that people make when trying to design something  
> completely foolproof is to underestimate the ingenuity of complete  
> fools.
>
>

Howdy,

Do you have a ~/.bash_profile (for login shells) or a ~/.bashrc (for  
non-login shells --- probably what TextMate would use)? These may have  
setting for PATH and, I believe,  will be executed instead of .profile  
if they exist.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)





More information about the macostex-archives mailing list