Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > where does darwin set all the env variables?

where does darwin set all the env variables?
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2003
Location: Sacramento, CA
Status: Offline
Reply With Quote
Dec 20, 2003, 08:08 AM
 
I'm running OS X 10.3.2/Darwin 7.2.0, and I'm trying to add an entry to my path, but I can't figure out where my path is declared. It's not in ~/.cshrc, it doesn't exist, and when I create it, it doesn't recognize it. When I echo $PATH, it shows all my path info correctly, but where is this stored in a file?

Thanks.
     
Dedicated MacNNer
Join Date: Nov 2003
Location: SoCal
Status: Offline
Reply With Quote
Dec 21, 2003, 02:12 AM
 
you need to do something like:
printenv SHELL
if it answers "/bin/bash",
then add to your path (and all other users) by editting /etc/profile
or make a .bashrc file
     
skychum  (op)
Fresh-Faced Recruit
Join Date: Sep 2003
Location: Sacramento, CA
Status: Offline
Reply With Quote
Dec 21, 2003, 06:12 AM
 
Thank you very much.

What I ended up doing was editing /sw/bin/init.sh, because I have Fink and Darwin Ports installed, and I wanted to add /opt/local (DP's directory) to the path along with /sw. Fink creates a ~/.profile file that points to /sw/bin/init.sh that allows this.

Thanks again.
     
Dedicated MacNNer
Join Date: Nov 2003
Location: SoCal
Status: Offline
Reply With Quote
Dec 21, 2003, 05:32 PM
 
sky,
uhh you're welcome, but you seemed to have come up with a better solution than the one I provide. Glad to help give hints.
     
skychum  (op)
Fresh-Faced Recruit
Join Date: Sep 2003
Location: Sacramento, CA
Status: Offline
Reply With Quote
Dec 21, 2003, 05:42 PM
 
You gave me guidance.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:24 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2