| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Jul 17, 2008
Posts: 2
![]() |
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 | |
|
Inactive Staff
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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 | |
![]() Member Since: Jul 17, 2008
Posts: 2
![]() |
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 | |||||
![]() Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,531
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff
|
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 . ./.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 |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
All times are GMT -4. The time now is 08:17 AM.
Powered by vBulletin