diff options
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 333 |
1 files changed, 135 insertions, 198 deletions
@@ -3,7 +3,7 @@ A Quick Guide ====================================== -$LastChangedDate: 2013-09-27 06:57:44 +0000 (Fri, 27 Sep 2013) $ +$LastChangedDate: 2015-12-12 04:00:43 +0000 (Sat, 12 Dec 2015) $ Contents: @@ -15,7 +15,7 @@ Contents: D. Documentation II. INSTALLATION - A. Building from a Tarball or RPM + A. Building from a Tarball B. Building the Latest Source under Unix C. Building under Unix in Different Directories D. Installing from a Zip or Installer File under Windows @@ -123,7 +123,8 @@ I. INTRODUCTION create a repository, you have the option of specifying a storage back-end. The Berkeley DB back-end will only be available if the BDB libraries are discovered at compile - time. + time. The Berkeley DB back-end has been deprecated and + is not recommend. * libsasl (OPTIONAL for client and server) @@ -145,7 +146,7 @@ I. INTRODUCTION Subversion contains optional support for storing passwords in KWallet (KDE 4) or GNOME Keyring. - * libmagic + * libmagic (OPTIONAL) If the libmagic library is detected at compile time, it will be used to determine mime-types of binary files @@ -153,6 +154,12 @@ I. INTRODUCTION configured via auto-props or the mime-types-file option take precedence. + * Googlemock aka Gmock (OPTIONAL) + + This optional package is used by the tests for Subversions' + C++ bindings. + + C. Dependencies in Detail Subversion depends on a number of third party tools and libraries. @@ -186,54 +193,12 @@ I. INTRODUCTION commands described in section II.B before installing the following. - 1. Apache Portable Runtime 0.9.7 or 1.X.X (REQUIRED) + 1. Apache Portable Runtime 1.3 or newer (REQUIRED) Whenever you want to build any part of Subversion, you need the Apache Portable Runtime (APR) and the APR Utility (APR-util) libraries. - - **************************************************************** - ** IMPORTANT ISSUE ABOUT APR VERSIONS: READ THIS. ** - ** ** - **************************************************************** - | | - | APR 0.9.X and 1.X are binary-incompatible. | - | | - | This means: | - | | - | - if you are already using Subversion with APR 0.9.X, and | - | then upgrade your libapr to 1.X without rebuilding | - | Subversion, things will break and segfault. | - | | - | - if your Subversion server libraries are linked to one | - | version of APR, but your Apache server is linked to a | - | different version, things will break and segfault. | - | | - | Subversion distribution dependencies: | - | ------------------------------------- | - | | - | For a long time, Subversion's main distribution contained | - | APR and APR-UTIL (both 0.9.x), plus a few other things that | - | we couldn't count on the installation system having. But | - | nowadays, Subversion's requirements are no longer exotic, | - | and so our main distribution contains just the Subversion | - | source code itself -- people compiling Subversion are | - | expected to either have the APR libraries already installed | - | on their system, or to be capable of fetching them easily. | - | | - | Note that it's *perfectly* safe to use APR 1.X from the | - | beginning. In fact, we recommend it. If you're building | - | Subversion for the first time, there's no compatibility | - | issue to worry about, so grab the latest version of APR. | - | | - | If you already have a Subversion installation using APR | - | 0.9.x, it's still possible to move to APR 1.X safely. Just | - | be sure to recompile Subversion (and Apache httpd if | - | necessary) after upgrading APR! | - |______________________________________________________________| - - If you do not have a pre-installed APR and APR-util, you will need to get these yourself: @@ -288,7 +253,7 @@ I. INTRODUCTION compression. Most Unix systems have libz pre-installed, but if you need it, you can get it from - http://www.zlib.net + http://www.zlib.net/ 3. autoconf 2.59 or newer (Unix only) @@ -306,7 +271,7 @@ I. INTRODUCTION newer. The autogen.sh script knows about that. - 5. Serf library 1.2.1 or newer (OPTIONAL) + 5. Serf library 1.3.4 or newer (OPTIONAL) If you want your client to be able to speak to an Apache server (via a http:// or https:// URL), you must link against @@ -349,11 +314,7 @@ I. INTRODUCTION Under Windows, you can specify the paths to these libraries by passing the options --with-zlib and --with-openssl to gen-make.py. - ### Is that right? In-tree build of Neon was disabled in r875974. - This may now apply to Serf, or else gen-make.py should be - updated to remove such options. - - c. Using OpenSSL on the Apache server + b. Using OpenSSL on the Apache server You can also add support for these features to an Apache httpd server to be used for Subversion using the same support libraries. @@ -430,7 +391,7 @@ I. INTRODUCTION http://freshmeat.net/projects/cyrussasl/ - 9. Apache Web Server 2.X (OPTIONAL) + 9. Apache Web Server 2.2.X or newer (OPTIONAL) (http://httpd.apache.org/download.cgi) @@ -443,14 +404,16 @@ I. INTRODUCTION is done: See section III for details. - 10. Python 2.5 or newer (http://www.python.org/) (OPTIONAL) + 10. Python 2.7 or newer (http://www.python.org/) (OPTIONAL) If you want to run "make check" or build from the latest source - under Unix as described in section II.B and III.D, install - Python 2.5 or higher on your system. The majority of the test - suite is written in Python, as is part of Subversion's build + under Unix/Windows as described in section II.B, II.E and III.D, + install Python 2.7 or higher on your system. The majority of the + test suite is written in Python, as is part of Subversion's build system. + Note that Python 3.x is not supported and most likely won't work. + 11. Perl 5.8 or newer (Windows only) (OPTIONAL) @@ -459,26 +422,10 @@ I. INTRODUCTION script. - 12. MASM 6 or newer (Windows only, OPTIONAL) - - The Windows build scripts for Subversion can use the Microsoft - Macro Assembler (MASM) to build an optimized version of the ZLib - library. Make sure that the version of MASM you use is compatible - with the C compiler. If you're using MSVC 6, and don't have MASM 6, - a free MASM-compatible assembler is available here: - - http://www.masm32.com/ - - You only need ML.EXE and ML.ERR from this distribution. + 12. SQLite (REQUIRED) - The VS.NET installation already contains MASM (but note, that - version if MASM is not compatible with MSVC 6). - - - 13. SQLite (REQUIRED) - - Subversion 1.8 requires SQLite version 3.7.12 or above. You can meet - this dependency several ways: + Subversion requires SQLite version 3.7.12 or above. You can meet this + dependency several ways: * Use an SQLite amalgamation file. * Specify an SQLite installation to use. * Let Subversion find an installed SQLite. @@ -491,26 +438,26 @@ I. INTRODUCTION http://www.sqlite.org/download.html - 14. pkg-config (Unix only, OPTIONAL) + 13. pkg-config (Unix only, OPTIONAL) Subversion uses pkg-config to find appropriate options used at build time. - 15. D-Bus (Unix only, OPTIONAL) + 14. D-Bus (Unix only, OPTIONAL) D-Bus is a message bus system. D-Bus is required for support for KWallet and GNOME Keyring. pkg-config is needed to find D-Bus headers and library. - 16. Qt 4 (Unix only, OPTIONAL) + 15. Qt 4 (Unix only, OPTIONAL) Qt is a cross-platform application framework. QtCore, QtDBus and QtGui modules are required for support for KWallet. pkg-config is needed to find Qt headers and libraries. - 17. KDELibs 4 (Unix only, OPTIONAL) + 16. KDELibs 4 (Unix only, OPTIONAL) Subversion contains optional support for storing passwords in KWallet. KDELibs contains core KDE libraries. Subversion uses libkdecore and libkdeui @@ -522,13 +469,13 @@ I. INTRODUCTION --with-kwallet=/path/to/KDE/prefix - 18. GLib 2 (Unix only, OPTIONAL) + 17. GLib 2 (Unix only, OPTIONAL) GLib is a general-purpose utility library. GLib is required for support for GNOME Keyring. pkg-config is needed to find GLib headers and library. - 19. GNOME Keyring (Unix only, OPTIONAL) + 18. GNOME Keyring (Unix only, OPTIONAL) Subversion contains optional support for storing passwords in GNOME Keyring. pkg-config is needed to find GNOME Keyring headers and library. D-Bus and @@ -536,7 +483,7 @@ I. INTRODUCTION then pass the '--with-gnome-keyring' option to `configure`. - 20. Ctypesgen (OPTIONAL) + 19. Ctypesgen (OPTIONAL) Ctypesgen is Python wrapper generator for ctypes. It is used to generate a part of Subversion Ctypes Python bindings (CSVN). If you want to build @@ -547,7 +494,7 @@ I. INTRODUCTION For more information on CSVN, see subversion/bindings/ctypes-python/README. - 21. libmagic (OPTIONAL) + 20. libmagic (OPTIONAL) Subversion's configure script attempts to find libmagic automatically. If it is installed in a non-standard location, then use: @@ -568,6 +515,12 @@ I. INTRODUCTION --with-libmagic + 21. Googlemock (OPTIONAL) + + Googlemock can be installed and built in-tree by invoking + + $ ./get-dep.sh gmock + D. Documentation The primary documentation for Subversion is the free book @@ -582,7 +535,7 @@ I. INTRODUCTION II. INSTALLATION ============ - A. Building from a Tarball or RPM + A. Building from a Tarball ------------------------------ 1. Building from a Tarball @@ -597,34 +550,10 @@ II. INSTALLATION $ make # make install - You can also run the full test suite by running 'make check'. - - - 2. Building from an RPM - - If you are using Linux (or any OS that can use RPM) then another - possibility is to download the binary RPM from the - http://summersoft.fay.ar.us/pub/subversion directory. - - Currently only Linux on the i386 platform is supported - using this method. You might also require additional RPMS - (which can be found in the above mentioned directory) to use the - subversion RPM depending on what packages you already have installed: - - subversion*.i386.rpm - apache*.i386.rpm (Version 2.0.49 or greater) - db*.i386.rpm (Version 4.0.14 or greater; version 4.3.27 or - 4.2.52 is preferred however) - expat (Comes with RedHat) - - After downloading, install it (as root user): - - # rpm -ivh subversion*.386.rpm (add other packages as necessary) - - Note: For an easy way to generate a new version of the RPM - source and binary package from the latest source code you - just checked out, see the packages/rpm/README file for a - one-line build procedure. + You can also run the full test suite by running 'make check'. Even + in successful runs, some tests will report XFAIL; that is normal. + Failed runs are indicated by FAIL or XPASS results, or a non-zero exit + code from "make check". B. Building the Latest Source under Unix @@ -646,7 +575,6 @@ II. INSTALLATION # rm -f /usr/local/lib/libsvn* # rm -f /usr/local/lib/libapr* - # rm -f /usr/local/lib/libexpat* # rm -f /usr/local/lib/libserf* Start the process by running "autogen.sh": @@ -655,7 +583,7 @@ II. INSTALLATION This script will make sure you have all the necessary components available to build Subversion. If any are missing, you will be - told where to get them from. (See the 'Build Requirements' in + told where to get them from. (See the 'Dependency Overview' in section I.) Note: if the command "autoconf" on your machine does not run @@ -786,27 +714,30 @@ II. INSTALLATION E.1 Prerequisites * Visual Studio 6 and service pack. It can be built with later versions - of Visual Studio (Visual Studio.NET 2002, 2003, 2005, 2008 and Visual - C++ Express 2005, 2008) but these instructions assume VS6. + of Visual Studio (Visual Studio.NET 2005-2015, Visual C++ Express + 2005-2010, Visual Studio Express 2012-2013 and Visual Studio Community + 2013-2015) but these instructions assume VS6. * A recent Windows SDK. (Not needed with Visual Studio 2005 and later) If you are using Visual Studio 6, you need the latest SDK which - is compatible with VC6, which is the one from february 2003. + is compatible with VC6, which is the one from February 2003. You can get it from MSDN: - http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm - * Python 2.5 or higher, downloaded from http://www.python.org/ which is + https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/e1147034-9b0b-4494-a5bc-6dfebb6b7eb1/download-and-install-microsoft-platform-sdk-febuary-2003-last-version-with-vc6-support?forum=windowssdk + * Python 2.7 or higher, downloaded from http://www.python.org/ which is used to generate the project files. + Note that Python 3.x is not supported (yet). * Perl 5.8 or higher from http://www.activestate.com/ * Awk (from http://www.cs.princeton.edu/~bwk/btl.mirror/awk95.exe) is needed to compile Apache or APR. Note that this is the actual awk program, not an installer - just rename it to awk.exe and it is ready to use. * Apache apr, apr-util, and optionally apr-iconv libraries, version - 0.9.12 or later. Included in both the Subversion dependencies ZIP file + 1.3 or later. Included in both the Subversion dependencies ZIP file and the Apache 2 source zip. If you are building from a Subversion checkout and have not downloaded Apache 2, then get these 3 libraries from http://www.apache.org/dist/apr/. + * SQLite 3.7.12 or higher from http://www.sqlite.org/download.html * ZLib 1.2 or higher is required and is included in the Subversion - dependencies zip file or can be obtained from http://www.zlib.org + dependencies zip file or can be obtained from http://www.zlib.net/ * Either a Subversion client binary from http://subversion.apache.org/ to do the initial checkout of the Subversion source or the zip file source distribution. See the section "Bootstrapping from a Zip or @@ -818,11 +749,7 @@ II. INSTALLATION * [Optional] Apache 2 source, downloaded from http://httpd.apache.org/download.cgi, these instructions assume version 2.0.58. This is only needed for building the Subversion - server Apache modules. Note that although Subversion will compile - against Apache 2.2.3 and APR 1.2.7, there is a bug that causes - runtime failures with Subversion on Windows. The fix is included in - APR 1.2.8 and will be bundled in the next HTTP Server release - (likely to be 2.2.4). + server Apache modules. ### FIXME Apache 2.2 or greater required. * [Optional] Apache 2 msi install file, also from http://httpd.apache.org/download.cgi (required for running the tests). Only needed for testing the server dso modules and if @@ -835,7 +762,7 @@ II. INSTALLATION components -- versions 4.3.27 and 4.4.20 are available from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=688 as db-4.3.27-win32.zip and db-4.4.20-win32.zip. - For more information see Section I.5. + For more information see Section I.C.7. * [Optional] Openssl 0.9.7f or higher can be obtained from http://www.openssl.org/source/openssl-0.9.7f.tar.gz * [Optional] A modified version of GNU libintl, called @@ -856,7 +783,7 @@ II. INSTALLATION The Serf library supports secure connections with OpenSSL and on-the-wire compression with zlib. If you want to use the secure connections feature, you should pass the option - "--with-openssl" to the gen-make.py script. See Section I.11 for + "--with-openssl" to the gen-make.py script. See Section I.C.6 for more details. E.3 Preparation @@ -874,7 +801,7 @@ II. INSTALLATION * Install Visual Studio Environment. You either have to tell the installer to register environment variables or run VCVARS32.BAT before building anything. If you are using a newer Visual Studio, - use the 'Visual Studio 200x Command Prompt' on the Start menu. + use the 'Visual Studio 20xx Command Prompt' on the Start menu. * Install and register a recent Windows Core SDK if you are using Visual Studio 6. This is a quote from the Microsoft February 2003 SDK documentation: @@ -897,14 +824,15 @@ II. INSTALLATION * Install Perl (it should add itself to the path) * Copy AWK (awk95.exe) to awk.exe (e.g. SVN\awk\awk.exe) and add the directory containing it (e.g. SVN\awk) to the path. - * Install Apache 2 using the msi file if you are going to test the - server dso modules and are using Visual Studio 6. You must build + * [Optional] Install Apache 2 using the msi file if you are going to test + the server dso modules and are using Visual Studio 6. You must build and install it from source if you are not using Visual Studio 6 and want to build and/or test the server modules. - * If you checked out Subversion from the repository then install the serf - sources into SVN\src-trunk\serf. - * If you want BDB backend support, extract the Berkeley DB files - into SVN\src-trunk\db4-win32. It's a good idea to add + * [Optional] If you checked out Subversion from the repository and want + to build Subversion with http/https access support then install the + serf sources into SVN\src-trunk\serf. + * [Optional] If you want BDB backend support, extract the Berkeley DB + files into SVN\src-trunk\db4-win32. It's a good idea to add SVN\src-trunk\db4-win32\bin to your PATH, so that Subversion can find the Berkeley DB DLLs. @@ -919,8 +847,8 @@ II. INSTALLATION SVN\src-trunk\db4-win32\lib. Again, the DLLs should be somewhere in your path. - * If you want to build the server modules, extract Apache source into - SVN\httpd-2.x.x. + * [Optional] If you want to build the server modules, extract Apache + source into SVN\httpd-2.x.x. * If you are building from a checkout of Subversion, and you are NOT building Apache, then you will need the APR libraries. Depending on how you got your version of APR, either: @@ -932,14 +860,20 @@ II. INSTALLATION SVN\apr-util, and SVN\apr-iconv respectively. * Extract the ZLib sources into SVN\zlib if you are not using the zlib included in the dependencies zip file. - * If you want secure connection (https) client support, extract openssl - into SVN\openssl-x.x.x - * If you want localized message support, extract svn-win32-libintl.zip - into SVN\svn-win32-libintl and extract gettext-x.x.x-bin.zip and - gettext-x.x.x-dep.zip into SVN\gettext-x.x.x-bin. + * [Optional] If you want secure connection (https) client support, or if + you are building with enabled support for serf extract openssl into + SVN\openssl-x.x.x + * [Optional] If you want localized message support, extract + svn-win32-libintl.zip into SVN\svn-win32-libintl and extract + gettext-x.x.x-bin.zip and gettext-x.x.x-dep.zip into + SVN\gettext-x.x.x-bin. Add SVN\gettext-x.x.x-bin\bin to your path. * [Optional] Extract MASM32 (only the ML.EXE and ML.ERR files) into SVN\asm (or extract nasm into SVN\asm) and put it in your path. + * Download the SQLite amalgemation from + http://www.sqlite.org/download.html + and extract it into SVN\sqlite-amalgemation. + See I.C.12 for alternatives to using the amalgemation package. E.4 Building the Binaries @@ -955,14 +889,14 @@ II. INSTALLATION C:>set VER=trunk C:>set DIR=trunk - C:>set DRIVE=C + C:>set BUILD_ROOT=C:\SVN C:>set PYTHONDIR=C:\Python22 C:>set AWKDIR=C:\SVN\Awk C:>set ASMDIR=C:\SVN\asm - C:>set SDKINC=C:\Program Files\Microsoft SDK\include - C:>set SDKLIB=C:\Program Files\Microsoft SDK\lib + C:>set SDKINC="C:\Program Files\Microsoft SDK\include" + C:>set SDKLIB="C:\Program Files\Microsoft SDK\lib" C:>set GETTEXTBIN=C:\SVN\gettext-0.14.1-bin\bin - C:>PATH=%PATH%;%DRIVE%:\SVN\src-%DIR%\db4-win32;%ASMDIR%; + C:>PATH=%PATH%;%BUILD_ROOT%\src-%DIR%\db4-win32;%ASMDIR%; %PYTHONDIR%;%AWKDIR%;%GETTEXTBIN% C:>set INCLUDE=%SDKINC%;%INCLUDE% C:>set LIB=%SDKLIB%;%LIB% @@ -984,17 +918,44 @@ II. INSTALLATION This step is only required for building the server dso modules. - The Subversion gen-make.py script must be run before building Apache or - Apache and Subversion will be running incompatible versions of apr. - - C:>cd src-%DIR% - C:>python gen-make.py -t dsp --with-httpd=..\httpd-2.0.58 - --with-berkeley-db=db4-win32 --with-openssl=..\openssl-0.9.7f - --with-zlib=..\zlib --with-libintl=..\svn-win32-libintl - C:>cd .. C:>set APACHEDIR=C:\Program Files\Apache Group\Apache2 C:>msdev httpd-2.0.58\apache.dsw /MAKE "BuildBin - Win32 Release" + APR + + If you downloaded APR / APR-UTIL / APR_ICONV by source, you will have to + build these libraries first. + Building these libraries on Windows is straight forward and in most cases + as simple as issuing these two commands: + + C:>nmake -f Makefile.win + C:>nmake -f Makefile.win install + + Please refere to the build instructions provided by the library source + for actual build instructions. + + ZLib + + If you downloaded the zlib source, you will have to build ZLib first. + Building ZLib using Visual Studio should be quite simple. Just open the + appropriate solution and build the project zlibstat using the IDE. + + Please refere to the build instructions provided by the library source + for actual build instructions. + + Note that you'd make sure to define ZLIB_WINAPI in the ZLib config + header and move the lib-file into the zlib root-directory. + + Serf + + ### Section about serf might be required/useful to add. + ### scons is required too and serf needs to be configured prior to be + ### able to build Subversion using: + ### scons APR=[PATH_TO_APR] APU=[PATH_TO_APU] OPENSSL=[PATH_TO_OPENSSL] + ### ZLIB=[PATH_TO_ZLIB] PREFIX=[PATH_TO_SERF_DEST] + ### scons check + ### scons install + Subversion Things to note: @@ -1006,7 +967,7 @@ II. INSTALLATION the APR libraries; the options are --with-apr, --with-apr-util and --with-apr-iconv. * If you would like a debug build substitute Debug for Release in - the msdev commands. + the msdev/msbuild commands. * There have been rumors that Subversion on Win32 can be built using the latest cygwin, you probably don't want the zip file source distribution though. ymmv. @@ -1019,8 +980,9 @@ II. INSTALLATION directories must be in the Tools/Options/Directories settings (if you followed the 'Register the SDK with Visual Studio 6' instructions above this has been done for you). - * If you are using Visual Studio .NET change -t dsw into -t vcproj and - add the --vsnet-version=200x option on the gen-make.py command. + * If you are using Visual Studio later than VC6 change -t dsw into + -t vcproj and add the --vsnet-version=20xx option on the gen-make.py + command. In this case you will also have to distribute the C runtime dll with the binaries. Also, since Apache/APR do not provide .vcproj files, you will need to convert the Apache/APR .dsp files to .vcproj files @@ -1030,7 +992,6 @@ II. INSTALLATION The Apache/APR projects required by Subversion are: apr-util\libaprutil.dsp, apr\libapr.dsp, apr-iconv\libapriconv.dsp, apr-util\xml\expat\lib\xml.dsp, - apr-util\uri\gen_uri_delims.dsp (for APR 0.9.x), apr-iconv\ccs\libapriconv_ccs_modules.dsp, and apr-iconv\ces\libapriconv_ces_modules.dsp. * If the server dso modules are being built and tested Apache must not @@ -1051,12 +1012,13 @@ II. INSTALLATION C:>msdev subversion_msvc.dsw /USEENV /MAKE "__ALL_TESTS__ - Win32 Release" C:>cd .. - Or, with Visual C++.NET 2002, 2003, 2005: + Or, with Visual C++.NET 2005 or C++ Express 2005: C:>devenv subversion_vcnet.sln /build "Release" /project "__ALL_TESTS__" C:>cd .. - Or, with Visual C++ Express 2005: + Or, with Visual C++.NET 2008+, C++ Express 2008+, Studio Express 2012+ or + Studio Community 2013+: C:>msbuild subversion_vcnet.sln /t:__ALL_TESTS__ /p:Configuration=Release C:>cd .. @@ -1102,7 +1064,7 @@ II. INSTALLATION Then run the client tests: - C:>PATH=%DRIVE%:\SVN\svn-win32-%VER%\bin;%PATH% + C:>PATH=%BUILD_ROOT%\svn-win32-%VER%\bin;%PATH% C:>cd src-%DIR% C:>python win-tests.py -c -r -v @@ -1152,42 +1114,16 @@ III. BUILDING A SUBVERSION SERVER A. Setting Up Apache ----------------- - (Following the BOOTSTRAPPING FROM RPM procedures above will install and - build the latest Subversion server for Linux RedHat 7.1, 7.2, and PPC - Linux systems *IF* the apache-devel-2.0.41 or greater package is already - installed when the SUBVERSION RPM is built.) - - 1. Obtaining and Installing Apache 2 Subversion tries to compile against the latest released version - of Apache httpd 2.X. The easiest thing for you to do is download + of Apache httpd 2.2+. The easiest thing for you to do is download a source tarball of the latest release and unpack that. - - **************************************************************** - ** IMPORTANT ISSUE ABOUT APACHE VERSIONS: READ THIS. ** - ** ** - **************************************************************** - | | - | First, be sure to read the APR version warning box, back in | - | section I.C.1, which explains that APR 0.9.x and 1.X are | - | binary-incompatible. | - | | - | Apache HTTPD 2.0 uses APR 0.9.x. | - | Apache HTTPD 2.2 uses APR 1.2.x. | - | | - | We recommend using the latest Apache. However, whatever | - | version you choose, you *must* ensure that Subversion | - | and Apache are using the same version of APR. If you don't, | - | things will segfault and break. | - |______________________________________________________________| - - - If you have questions about the Apache httpd 2.0 build, please consult + If you have questions about the Apache httpd 2.2 build, please consult the httpd install documentation: - http://httpd.apache.org/docs-2.0/install.html + http://httpd.apache.org/docs-2.2/install.html At the top of the httpd tree: @@ -1213,7 +1149,7 @@ III. BUILDING A SUBVERSION SERVER line. Make sure this is the same db as the one Subversion uses. This note assumes you have installed Berkeley DB 4.2.52 at its default locations. For more info about the db requirement, - see section I.5. + see section I.C.7. You may also want to include other modules in your build. Add --enable-ssl to turn on SSL support, and --enable-deflate to turn on @@ -1233,7 +1169,7 @@ III. BUILDING A SUBVERSION SERVER --------------------------------------------------------- Go back into your subversion working copy and run ./autogen.sh if - you need to. Then, assuming Apache httpd 2.0 is installed in the + you need to. Then, assuming Apache httpd 2.2 is installed in the standard location, run: $ ./configure @@ -1243,7 +1179,7 @@ III. BUILDING A SUBVERSION SERVER look for other libsvn_*.so libraries on your system. If you see a warning message that the build of mod_dav_svn is - being skipped, this may be because you have Apache httpd 2.X + being skipped, this may be because you have Apache httpd 2.x installed in a non-standard location. You can use the "--with-apxs=" option to locate the apxs script: @@ -1285,7 +1221,7 @@ III. BUILDING A SUBVERSION SERVER /usr/local/apache2/conf/httpd.conf to reflect your setup. At a minimum you should look at the User, Group and ServerName directives. Full details on setting up apache can be found at: - http://httpd.apache.org/docs-2.0/ + http://httpd.apache.org/docs-2.2/ First, your httpd.conf needs to load the mod_dav_svn module. If you pass --enable-mod-activation to Subversion's configure, @@ -1339,6 +1275,7 @@ III. BUILDING A SUBVERSION SERVER Require group svn_readers </Limit> + ### FIXME Tutorials section refers to old 2.0 docs These are only a few simple examples. For a complete tutorial on Apache access control, please consider taking a look at the tutorials found under "Security" on the following page: @@ -1365,7 +1302,7 @@ III. BUILDING A SUBVERSION SERVER NOTE: If you are unfamiliar with an Apache directive, or not exactly sure about what it does, don't hesitate to look it up in the - documentation: http://httpd.apache.org/docs-2.0/mod/directives.html. + documentation: http://httpd.apache.org/docs-2.2/mod/directives.html. NOTE: Make sure that the user 'nobody' (or whatever UID the httpd process runs as) has permission to read and write the |