On Apr 2, 2009, at 7:43 AM, Craig Heilman wrote: > This brings up a question for me. I've heard differing > recommendations on how to tell the OS which version of an > application to use. Bill outlines one method. Another method > involves simply changing your path to include /usr/local/bin and/or > other "preferred" directories before the standard directories. For > example, I have the following in my ~/.bash_profile: > > export PATH="/opt/subversion/bin:/usr/local/bin:$PATH" > > Which method is "safest" in the face of OS updates and the like?
This depends on what you mean by "safe". If 10.5 installs svn 1.4, you install 1.5, and 10.6 updates to 1.6, presumably you'd like to revert to the 10.6 version. But if 10.5 installs 1.4, you install 1.6, and 10.6 updates to 1.5, presumably you'd like to keep using 1.6. There are conventions for where to put updated binaries, depending on who's going to use them. /usr/local/bin and /opt/local/bin are common (MacPorts puts svn in the latter). ~/bin can be used if you want to restrict the binary to your own use. But none of those will be seen by launchd-launched apps unless you make launchd aware of the change somehow. > > Note: I'm using the Mac OS Subversion 1.6 binaries downloaded direct > from openCollabNet as I just couldn't get the source to compile > correctly as in the past (openSSL issues). The default install > location is /opt/subversion/bin. > There's an old technote that appears to still be valid: http://developer.apple.com/qa/qa2001/qa1067.html The idea would be to set PATH in ~/.MacOSX/environment.plist. I haven't tried it, though. PATH is tricky, because there will be exiting entries you want to retain, and I don't know how environment.plist interacts with that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
