Saturday, March 28, 2009

Installing Subversion 1.5 binaries in Ubuntu 8.04

I'm a little left in the lurch currently, because I need Subversion 1.5 client binaries in my Ubuntu 8.04 virtual machine (the one I use for training). This is because Eclipse check projects out in such with 1.5 compatibility (IDEA is kind enough to ask which version to use). In any case, since setting up my Tapestry Workspace involves a bit of command-line SVN, I found myself needing to upgrade SVN to 1.5.

With a little hunting around and some guesswork, I found the solution.

You need to add a new Software Sources location; this is a tool, "Software Sources" inside the Applications > System menu. Click the tab labeled "Third Party Tools" and add a new source. You'll be prompted to enter an "apt-get line": deb http://archive.ubuntu.com/ubuntu/ intrepid main

From there, go into Synaptic Package Manager. Find package "subversion" and you'll see that there's a version of 1.5 now available, thanks to the new software source. You can right click and select "Upgrade", then apply the changes.

3 comments:

  1. A better and cleaner solution (as adding packages from another version of the distribution is not a very good idea) is to enable the "backports" repository.
    To do this, the easiest way (to me, at least) is to edit the /etc/apt/sources.list and enable this line:
    deb http://archive.ubuntu.com/ubuntu hardy-backports main universe
    (and depending on your preferences, the restricted and multiverse sections)
    Hope this helps.

    ReplyDelete
  2. I had sort of the same problem. I use SVNKit instead of the binary. It works inside Eclipse, but not outside. It depends on your needs.

    ReplyDelete
  3. Thanks to Raul for pointing out the backports solution, which solved this issue for me. However there is at easier method to enable them.
    Bring up Synaptic Package Manager.
    Go settings-->Repositories then Updates tab.

    Tick "Unsupported updates (hardy backports)"

    The required update is now available via the package manager.

    Cheers all,
    Tim S.

    ReplyDelete

Please note that this is not a support forum for Tapestry. Requests for help will be deleted. Please subscribe to the Tapestry user mailing list if you are in need of support, or contact me directly for professional (for pay) support.

Spammers: Don't bother. I delete your comments and it's a waste of time for both of us. 垃圾邮件发送者:不要打扰。我删除您的评论和它的时间对我们双方的浪费