(redirected from Main.SettingEnvironmentVariablesInOSX)
In http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x, the general consensus is to change the /etc/launch.conf file. The simplest way is to use the launchctl command:
sudo launchctl setenv PATH /sw/bin:/sw/sbin:/usr/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/X11/bin:/usr/texbin
One can also set the path by putting the command in the /etc/launch.conf file:
setenv PATH /sw/bin:/sw/sbin:/usr/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/X11/bin:/usr/texbin
| Tags: | Categories: HowTos |
Recent Changes |
Printable View |
Page History |
Edit Page
Page last modified on April 17, 2012, at 08:59 PM by ImportText?