Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

duggram

macrumors 6502
Original poster
Apr 17, 2008
391
11
I'm setting up svnX on my 10.6.8 MBP. Setup wants to know where the SVN binaries are. It would also be good to know how I should have looked for them from Terminal. I'm sure there's a command, I just don't know it. Thank you.
 
Depends entirely on how you installed it but generally it should be /usr/bin/svn
 
Yes that's in /usr/bin/svn but generally most people I work with will compile and install newer versions over that one as they become available.
 
It would also be good to know how I should have looked for them from Terminal.

If you want to find the path to a program, you can use either the which program or the find program.

First start with:
Code:
which svn
This will find an svn program on path, that is the one that would be executed if you just type svn into Terminal.

However, you might have multiple svn programs, presumably of different versions. The which program will only print out the path of the first one, not necessarily the latest one, and it won't print out the paths of svn programs not on path.

The find command below will search your hard disk and print out the path and version of all the svn programs it finds.
Code:
find -x / -name svn -type f -perm +a=x -exec echo -n '{} version ' \; -exec {} --version --quiet \; 2>&1 | grep -v 'Permission denied'


Yes that's in /usr/bin/svn but generally most people I work with will compile and install newer versions over that one as they become available.

I hope you mean your colleagues metaphorically install newer versions over the standard one and not literally. For example, by installing the new version into a directory before the standard directories on path. Overwriting system-supplied files is a UNIX 101 no-no.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.