Greytree

TamWiki

For a mouse who is a packrat

Technology » Setting Environment Variables In OSX
a quick HowTo to setting environment variables in OSX

Summary:this is what goes at the top of the site

(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?