subversion のインストール

メモ


# tar zxvf subversion-1.6.5.tar.gz
# cd subversion-1.6.5
# ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2/bin/apr-1-config --with-apr-util=/usr/local/apache2/bin/apu-1-config --with-ssl --with-sqlite=/usr/local
以下のようにメッセージが出る。


config.status: creating subversion/bindings/swig/perl/native/Makefile.PL
config.status: creating packages/solaris/pkginfo
config.status: creating subversion/svn_private_config.h
config.status: executing svn_private_config.h commands
configure: WARNING: we have configured without BDB filesystem support


You don't seem to have Berkeley DB version 4.0.14 or newer
installed and linked to APR-UTIL. We have created Makefiles which
will build without the Berkeley DB back-end; your repositories will
use FSFS as the default back-end. You can find the latest version of
Berkeley DB here:
http://www.oracle.com/technology/software/products/berkeley-db/index.html

「(多分)バークレイDBが入っていないと思われるのでインストールするか、APR-UTILにリンクしろ。」と言われるので、apache に --with-berkeley-db オプションをつけてコンパイルし直す。


# cd ../httpd-2.2.13
# ./configure --enable-ssl --enable-so --enable-modules=all --enable-mods-shared=most --with-ssl=/usr/local/ssl --with-berkeley-db
# make && make install

また subverison の configure の途中に



checking for neon-config... no

An appropriate version of neon could not be found, so libsvn_ra_neon
will not be built. If you want to build libsvn_ra_neon, please either
install neon 0.28.4 on this system

or

get neon 0.28.4 from:
http://www.webdav.org/neon/neon-0.28.4.tar.gz
unpack the archive using tar/gunzip and rename the resulting
directory from ./neon-0.28.4/ to ./neon/

というメッセージが出ているので、neon をインストールしておく。
これは SSL 対応するために必要になるらしい。

# tar zvxf neon-0.28.6.tar.gz
# cd neon-0.28.6
# ./configure
# make && make install


再度 subversion のインストール


# cd ../subversion-1.6.5
# ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2/bin/apr-1-config --with-apr-util=/usr/local/apache2/bin/apu-1-config --with-ssl --with-sqlite=/usr/local
# make && make install
で、インストール完了。

/usr/local/apache2/conf/httpd.conf を確認すると、


LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
が追加されている。
apache を再起動すると、無事に subversion 付き apache が動作する。