Thursday, June 4, 2009

Tutorial: Configuring Subversion 1.6.2 on Ubuntu 9.0.4 with Eclipse 3.4

Having a problem with SVN commands not working? Let me guess, you have:

  • Ubuntu 9.0.4
  • Eclipse 3.4
  • Subclipse
  • and you need to connect to a Subversion 1.6.2 repository

If you are using the latest Subclipse plugin to checkout your projects, it will be working as a SVN 1.6.x client. This means it will write 1.6.2 file structures to disk.

Now you want to use a command line to do SVN commands. That means you need the 1.6.x command line client. BUT, if you do a "sudo apt-get subversion" it currently gives you....wait for it....version 1.5.4 for you command line. And you cannot use a 1.5.x client on a branch that also uses a 1.6.x client.

So, you have to do the following workaround to get command line version 1.6.x

  • Download the 1.6.2 RPM from http://www.open.collab.net/downloads/subversion/redhat.html
  • sudo apt-get install alien
  • sudo alien CollabNetSubversion-client-1.6.2-1.i386.rpm
  • sudo dpkg -i collabnetsubversion-client_1.6.2-2_i386.deb
  • This installs 1.6.2 into /opt/CollabNet/bin
  • Now, fix up your PATH env to make sure it is using 1.6.2 ("which svn")

No comments:

Post a Comment