New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Problems setting PATH variable in Lion


Post Reply New Thread Subscribe

 
Thread Tools
jon232

 
Member Since: Oct 28, 2011
Posts: 2
jon232 is on a distinguished road

jon232 is offline
Hello, can anyone tell me why OS X Lion won't save my PATH when I add a new path to it? I use export PATH=$PATH:/"my_pathhere" to add the path that I want added. Upon typing echo $PATH before I close the terminal window it shows up in the path. However, once I exit the terminal window and re-open it the new path variable no longer shows up? I don't get it. I have just upgraded to Lion from Snow Leopard and did this exact same thing no longer than a week ago in Snow Leopard and had no problem.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Because you're never saved it to your profile, you've only loaded it into memory.

Try this.

echo "export PATH=$PATH:/path/to/whatever" >> .bash_profile

when done, then do

. .bash_profile

That should reload the profile and make the path change persistent

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
jon232

 
Member Since: Oct 28, 2011
Posts: 2
jon232 is on a distinguished road

jon232 is offline
Thanks Mike, I believe that did the trick!
QUOTE Thanks

Post Reply New Thread Subscribe


« Kernal Panic during software update | Preview keeps opening 3 pictures every time lion boots »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
path environment variable blackwaterdev Switcher Hangout 5 04-04-2013 04:06 AM
Setting Up Time Capsule - Problems Jetheat Internet, Networking, and Wireless 52 01-01-2012 07:00 AM
Apple outlines Lion upgrade path for business and education customers OneMoreThing... Apple Rumors and Reports 0 06-17-2011 04:00 PM
How to edit PATH variable outside of terminal oxy126 OS X - Operating System 4 04-22-2011 06:29 PM
Airport Express Problems Setting Up AW2007 Internet, Networking, and Wireless 0 03-05-2009 07:39 PM

All times are GMT -4. The time now is 09:59 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?