Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

But, mac os x comes with 1.6 version of svn. I wanted to update my version of svn, so I installed svn using

brew install svn

which installed svn version 1.7

But if I try to check my svn version using

svn --version

It still shows 1.6

How can I change which installation to use?

(Note: It was very difficult to find right words to google this question.)

share|improve this question
    
This question is about different versions but the solution might still be valid. –  madth3 Oct 9 '12 at 18:39
    
no, that solution did not work for me. –  hrishikeshp19 Oct 9 '12 at 19:06
add comment

migrated from stackoverflow.com Oct 15 '12 at 10:48

This question came from our site for professional and enthusiast programmers.

2 Answers

Use which svn to see the path to your svn executable. If it isn't your brew install directory (/usr/local by default), you'll need to change your PATH variable so it looks in your brew install directory before the directory where it's currently finding svn. echo $PATH will show you your current path search list. Edit your ~/.bash_profile and look at all the statements that create the PATH variable. Edit or rearrange them so your desired path winds up before the current path.

share|improve this answer
    
well I did. port install subversion. That installed one more version of svn on my mac. It seems like "port > default > brew" –  hrishikeshp19 Oct 10 '12 at 4:16
add comment

I did

port install subversion

This command installed one more version of svn on my mac.

And it seems priority is like

macports installation > default mac installation > brew installation

So, I did not try to get my brew's svn on the top, instead I accidentally installed something (macports svn) which overridden the default installation of svn. So, my mac has 3 svns, but only 1.7 is used now.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.