Lessons learned from installing Subversion

06 Jun 2006 21:03 - (0) comments

After following all steps from the Subversion Quick start I wanted to connect to a remote server. Checking out from the command line worked fine, but when I tried checking out with Textmate I got the following error:

bash: line 1: svnserve: command not found
subversion/libsvn_ra_svn/marshal.c:255: (apr_err=210002)

This happened because the path to svnserve is only set in my ~/.profile. I added /usr/local/bin to the PATH of /etc/bashrc/ so that it's available for bash terminals without window.

Subversion over SSH

Communicating with my Subversion worked fine. The following command gave me no errors:

svn list svn://petrik@svnserver.local/myproject

Then I tried talking to Subversion over ssh:

svn list svn+ssh://petrik@svnserver.local/myproject

This time I got the following error:

subversion/svnserve/serve.c:1960: (apr_err=210005)
svn: No repository found in 'svn+ssh://petrik@svnserver.local/myproject/trunk'

The problem is that connecting over SSH works differently. You log in on the machine through SSH and then you talk to the local svnserve. So the path the url should contain the complete path to the repository: svn list svn+ssh://petrik@svnserver.local/Users/petrik/Subversion/.../myproject

Comments

No comments allowed.

Admin