Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call macports svn rather than pre-installed mac's svn

Tags:

macos

macports

i have mac preinstalled svn at ->/usr/bin/svn

i have macport install svn at -->opt/local/var/macports/software/subversion/1.6.3_0/opt/local

my .bash_profile look like export M2_HOME=/Users/teoh/work/maven export M2=$M2_HOME/bin export PATH=$M2:$PATH

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home export PATH=/Users/teoh/work/gwt-mac-1.5.3:$PATH

how to set macport svn as default svn each time i use the console in mac? what do i need to put in .bash_profile?

like image 684
cometta Avatar asked Dec 22 '22 10:12

cometta


1 Answers

The default install of Macports install links into /opt/local/bin and /opt/local/sbin.

So adding:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

at the end of your .bash_profile should let you access MacPorts svn.

I would also like to add that it is odd that MacPorts didn't do this for you when you installed it. Check for the line similar to above in your .bash_profile. If you have a line like it then try moving it to a position lower in the file.

You can also use 'which svn' in bash to determine which copy of subversion you are using.

like image 199
MitMaro Avatar answered Jan 13 '23 10:01

MitMaro