OS X - Operating System General OS operation information and support

OS 10.5 - Finding and updating environmental variables in Terminal


Post Reply New Thread Subscribe

 
Thread Tools
woodcreeper

 
Member Since: Jul 17, 2008
Posts: 2
woodcreeper is on a distinguished road

woodcreeper is offline
Hi

I'm NEEEEEEWWWWW to using Mac Terminal, but I recently installed the new version of rsync (v. 3.0.3) and need to figure out how to change the environmental variable for the program. Right now when I type "rsync" it pulls up the old version... the source of which I have no idea. I'm sure this is something easily remedied, but I'm beating my head against the wall trying to figure it out.

Any help would be greatly appreciated.

Thanks

David
QUOTE Thanks
rman
Inactive Staff
 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
If you do a which or whereis and the command as in:

which rsync
whereis rsync

The command wil tell where the program is located. In your case you have placed the new rsync in a new location. Either you will have to create an alias to the command, or update your path statement. By placing the location of the rsync command better the current command location.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
woodcreeper

 
Member Since: Jul 17, 2008
Posts: 2
woodcreeper is on a distinguished road

woodcreeper is offline
Thanks RMan.
I got a tip from a friend and used Locate. Unfortunately Locate didn't find the new install (must need to update the locate... which will take awhile). I found it by searching, replaces the old one with the new one, and it now works.

I'd like to know how to change the path though... I'll do some searching for that one online.

Cheers, and thanks again.

David
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,531
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 online now
Path is pretty easy.. here you go..

the following will show the path.

echo $PATH

To add it to the path, I do the following.
Code:
echo "PATH=/path/to/whatever:$PATH" >> ~/.profile
then do
. ./.profile

then echo $PATH and you should see the path listed, then issue the command.

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

Post Reply New Thread Subscribe


« Having one picture across 2 monitors(panorama) | Help me Make the Right Purchase on Restore Discs »
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

All times are GMT -4. The time now is 08:17 AM.

Powered by vBulletin
Copyright ©2000 - 2013, 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?