Dashboard > DHIS Documentation > ... > Tools > Subversion
  DHIS Documentation Log In | Sign Up   View a printable version of the current page.  
  Subversion
Added by trygvela, last edited by Hans S. Tømmerholt on Mar 16, 2007  (view change)
Labels: 
(None)

Subversion

Subversion is a source code management tool.

Subversion on Windows (for developers)

There are different ways of using Subversion on Windows and you have to install either Cygwin or TortoiseSVN.
Cygwin is a Linux-like environment for Windows where you can run Subversion, while TortoiseSVN is a GUI-based Subversion client.

Subversion configuration (recommended)

Cygwin

Download Cygwin from http://www.cygwin.com/
Make sure you install the OpenSSH package(expand the net category and tick of OpenSSH) and the Subversion package.

The Cygwin Setup program will prompt you for a "root" directory. The default is C:\cygwin, but you can change it. You are urged not to choose something like C:\ (the root directory on the system drive) for your Cygwin root.

TortoiseSVN

GUI-based SVN client.
Download the subversion TortoiseSVN client from http://tortoisesvn.net/downloads,
and Putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html.

Add the location of the Putty binary to your path environment variable, then TortoiseSVN will automatically find it when trying to connect to a repository over SVN.

Subversion on Mac (for developers)

There's binary packages available through Fink and possible Matisse (not up to date lately). Because of various issues it's just as easy to compile from source in this case.

  1. Obtain the SubVersion source code from http://subversion.tigris.org
  2. Download the version you want, at the point of writing the newest available is 1.4.2. Make sure you download a tar.gz or tar.bz2 - NOT zip file. There's problems with the zipfiles and compiling on Mac. Download BOTH the Subversion and the Subversion-deps-files.
    http://subversion.tigris.org/downloads/subversion-1.4.2.tar.gz
    http://subversion.tigris.org/downloads/subversion-deps-1.4.2.tar.gz
  3. Unpack the files using e.g. StuffIt Expander. They will end in two different folders. Merge them into one.
  4. Become root; by running the command "sudo su" in a terminal window.
  5. Create and/or move to e.g. /usr/src/subversion
  6. Move the unzipped source code to this location just to keep everything nice and tidy. (something along "mv /Users/username/Desktop/subversion-1.4.2 .")
  7. Let root own the folders & files, by executing something like "chown -R root:wheel /usr/src/subversion"
  8. Try to execute ./configure from within the subversion-1.4.2-folder. If it fails complaining about "no acceptable C compiler found in $PATH" you'll probably have to locate your Mac OS X installation disks, go to Xcode Tools, and run the XcodeTools.mpkg which contains e.g. GCC 4. Configuere will probably warn at the end about not finding Berkeley DB, disregard that, it will run without it.
  9. Execute "make" and wait for the compilation to finish
  10. Install by executing "make install".
  11. The svn-command should now be available from /usr/local/bin/ Run e.g. "/usr/local/bin/svn --version" to check that it's the version you just compiled.
  12. Take a look at how to configure your development environment

Subversion configuration (recommended)

Subversion on Linux (for developers)

Follow the Mac installation guide, or use your distributions package management system.
Note that on Linux the root user is usually in the root-group too, not wheel. The users folders can normally be found in /home not /Users. Unzip using tar/gzip rather than StuffIt Expander. You'll have to locate a C compiler through your distributions package management system most likely.

Subversion configuration (recommended)

Resources

Books

Getting started resources

Subversion configuration (DHIS Documentation)
tracking tools (DHIS Documentation)

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators