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

mason.kramer

macrumors 6502
Original poster
Today I tried to use my svn client to access a repository served by web-dav (i.e., a repository of the form https://...). It did not work. After googling I learnt that I would have to compile a few things from source with a manual configuration. So first I uninstalled my svn and svn-client packages that I downloaded from the fink package manager:

Code:
apt-get remove svn
apt-get remove svn-client

It appeared to work. Then I downloaded the necessary tarballs and configured, make'd and make installed'd them.

Now when I try to invoke the svn client, I get this message:

Code:
bash: /sw/bin/svn: No such file or directory.

That path is the path of the old, fink-installed svn bins. The new path is
Code:
/usr/local/bin/svn
.

If I specify the FQ path, the program runs as expected. E.g. /usr/local/bin/svn --help displays the helpfile.

How do I tell bash that I want it to run svn from /usr/local/bin/?

Edit PS
Code:
root@big-spring/sw/bin$echo $PATH
/sw/bin:/sw/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:~/bin:~:/Applications/:/usr/X11R6/bin
root@big-spring/sw/bin$whereis svn
/usr/bin/svn

The path is there, and *something* knows the proper place of svn. So, what gives?
 
Thanks, you're right. Actually, that is my mistake: I used apt-get to both install SVN, not fink. I must be on crack.

Anyway, it's too late now. All I want to do now is have bash stop looking in /sw/bin for the command. How would I do that?
 
Figured it out. One of the library dependencies installed by the package manager was still hanging out in /sw/bin. I manually removed it and now it's all working.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.