3.2. Installing on Mac OS X
Like Linux, Apple's Mac OS X is a UNIX-like operating system. It was originally based on the
3.2.1. Installing OS X Binaries
Installing the Subversion client on OS X is trivial. The Subversion Web site provides a link to prepackaged binaries of Subversion. To install, all you need to do is download the Subversion disk image ( .dmg ), mount it, and then launch the installer package ( .pkg extension). The installer will take you through a typical OS X install process that will set up everything to allow you to run Subversion from the command line, using Terminal.app or another terminal emulator.
3.2.2. Compiling Subversion on OS X
Compiling Subversion by hand on OS X should be as simple as compilation on Linux, and should follow the same process. Before installing, though, you may need to install the Apple Developer Tools, which are available for free from Apple's developer site ( developer.apple.com ). Installing the developer tools will install the GCC compiler, as well as a number of other development utilities, such as GNU Make.
3.2.3. Using Fink
An alternate way to install Subversion for OS X is through the Fink package management system. Fink provides a reasonably easy way for many open source packages (mostly from the UNIX world) to be installed. If you don't have Fink installed already, you can get it from
To install the SVN client from the command line, open Terminal.app, and run sudo fink install svn-client . Additionally, you can install several other packages if you would like to get different versions of the Subversion server. Installing the svn package, for instance, will get you the standalone svnserve Subversion server, whereas the package libapache2-mod-svn will get you everything you need to serve the repository over WebDAV, via Apache. If you would like the Subversion documentation, you can install the svn-doc package.
3.3. Installing on Windows
Installing Subversion on Windows is easy to do. If you follow the links for Win32 on the SVN download page, subversion.tigris.org/project_packages.html, you will find a Windows installer program, which should be named something like svn-1.1.0-setup.exe . You can download the setup program and run it to install Subversion. It will step you through everything you need to do to install SVN and get the basic application set up (see Figure 3.1).
Figure 3.1. The SVN setup program makes installation on Windows easy.
If you plan to set up your Windows machine to serve a Subversion repository through Apache, I suggest that you run the Subversion installer after installing Apache. If you do so, the Subversion installer will give you the option of allowing it to automatically configure Apache to load the appropriate modules for Subversion and WebDAV. You can also re-run the Subversion installer at a later date, if you install Apache and want to configure it for Subversion.
When installing Subversion on a Windows 2000 or XP machine, you should be able to install Subversion just by running the installer program. On the other hand, if you are installing on Windows 95, 98, or Millenium Edition, you may need to modify your
file to properly configure the system environment for Subversion. For example, if you installed in
(the default location), you should set up your
Subversion can also be compiled from source on Windows with Visual Studio, using the Windows-specific source, available as a zip compressed download (from the same place as the gzip and bzip2 source downloads). The specific instructions for compiling under Windows, though, are beyond the scope of this book. If you are interested in compiling the Windows version, the INSTALL file included with the Subversion source contains detailed step-by-step information about the process.