|
1. Apache Portable Runtime 0.9.7 (http://apr.apache.org/)
Whenever you want to build any part of Subversion, you need the
Apache Portable Runtime (APR) and the APR Utility (APR-util)
libraries. These are included in the Subversion dependency package -
if you are building from a source tarball and wish to use the versions
of APR and APR-util included there, just unpack the dependency package
and skip ahead to the next requirement.
If you are not building from a tarball with the dependency
package, you will need to get these yourself. Visit this page,
and be sure to download the 0.9.x version:
http://apr.apache.org/download.cgi
On Unix systems, if you already have the APR libraries compiled and do
not wish to regenerate them from source code, then Subversion needs to
be able to find them.
There are a couple of options to "./configure" that tell it where
to look for the APR and APR-util libraries. By default, it will first
look for bundled versions of APR and APR-util, and then try to locate
already installed versions of the libraries using the apr-config and
apu-config scripts. These scripts provide all the relevant information
for the APR and APR-util installations.
If you want to specify the location of the APR library, you can use
the "--with-apr=" option of "./configure". It should be able to find
the apr-config script in the standard location under that directory
(e.g. ${prefix}/bin).
Similarly, you can specify the location of APR-util using the
"--with-apr-util=" option to "./configure". It will look for the
apu-config script relative to that directory.
For example, if you want to use the APR libraries you built
with the Apache httpd 2.0 server, you could run:
$ ./configure --with-apr=/usr/local/apache2 \
--with-apr-util=/usr/local/apache2 ...
If you want Subversion to build the APR libraries from source
code as part of the Subversion build process, you can put their
source code into the "./apr" and "./apr-util" directories.
You don't need the latest development versions, since Subversion is
guaranteed to compile against the latest released APR and APR-util.
However, if you really want to, you can use the following two
commands. If you run them from the directory where you've checked out
Subversion, then the APR source code will be in "./apr" and
"./apr-util", where Subversion wants it:
$ svn co \
http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
$ svn co \
http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
NOTE: On Windows you will also need apr-iconv. Check it out next to
the apr and apr-util directories:
$ svn co \
http://svn.apache.org/repos/asf/apr/apr-iconv/branches/0.9.x apr-iconv
Be sure to use a native Windows SVN client (as opposed to
Cygwin's version) so that the .dsp files get carriage-returns at
the ends of their lines. Otherwise Visual Studio will complain
that it doesn't recognize the .dsp files.
If you use APR libraries checked out from svn in an Unix
environment, you need to run the 'buildconf' script in each
library's directory, to regenerate the configure scripts and
other files required for compiling the libraries:
$ cd apr; ./buildconf; cd ..
$ cd apr-util; ./buildconf; cd .. |
|