Terminal blundering - help wanted

Discussion in 'macOS' started by mason.kramer, Mar 2, 2008.

  1. mason.kramer macrumors 6502

    mason.kramer

    Joined:
    Apr 16, 2007
    Location:
    Watertown, MA
    #1
    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?
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    You should use fink remove * not apt-get remove *.
     
  3. mason.kramer thread starter macrumors 6502

    mason.kramer

    Joined:
    Apr 16, 2007
    Location:
    Watertown, MA
    #3
    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?
     
  4. mason.kramer thread starter macrumors 6502

    mason.kramer

    Joined:
    Apr 16, 2007
    Location:
    Watertown, MA
    #4
    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.
     

Share This Page