svn install

$ su - http

今、"http"ユーザを使ってhttpdを起動させている。

$ wget http://subversion.tigris.org/downloads/subversion-1.6.9.tar.bz2
$ md5sum subversion-1.6.9.tar.bz2

wgetコマンドを使ってダウンロード
md5sumで出力された値をweb(downloadページ)で確認できた数字と比較。

$ tar jxvf subversion-1.6.9.tar.bz2
$ cd subversion-1.6.9
$ pwd
$ ./configure --with-apxs=/home/http/apache/bin/apxs \
--with-apr=/home/http/apache/bin/apr-1-config \
--with-apr-util=/home/http/apache/bin/apu-1-config \
--with-ssl
||< 

すると文句を言われた。。。


>||
An appropriate version of sqlite could not be found.  We recommmend
3.6.13, but require at least 3.4.0.
Please either install a newer sqlite on this system

or

get the sqlite 3.6.13 amalgamation from:
    http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
unpack the archive using tar/gunzip and copy sqlite3.c from the
resulting directory to:
/home/http/subversion-1.6.9/sqlite-amalgamation/sqlite3.c
This file also ships as part of the subversion-deps distribution.

configure: error: Subversion requires SQLite
$ wget http://subversion.tigris.org/downloads/subversion-deps-1.6.9.tar.bz2
$ md5sum subversion-deps-1.6.9.tar.bz2
$ tar jxvf subversion-deps-1.6.9.tar.bz2

wgetコマンドを使ってダウンロード
md5sumで出力された値をweb(downloadページ)で確認できた数字と比較。

$ cd subversion-1.6.9
$ pwd
$ ./configure --with-apxs=/home/http/apache/bin/apxs \
--with-apr=/home/http/apache/bin/apr-1-config \
--with-apr-util=/home/http/apache/bin/apu-1-config \
--with-ssl
$ make
$ su -
# cd /home/http/subversion-1.6.9
# make install

インストール成功?
http.confが書き換わる。。。

$ cd /home/http/
$ mkdir svn
$ svnadmin create /home/http/svn/test
$ svn mkdir file:///home/http/svn/test/trunk \
> file:///home/http/svn/test/tags \
> file:///home/http/svn/test/branches
$ chown -R http:http /home/http/svn/test
$ cd apache/conf/
$ cp httpd.conf httpd.conf.`date +%Y%m%d`
$ diff httpd.conf httpd.conf.`date +%Y%m%d`
$ vi httpd.conf
<Location /svn/test>
DAV svn
SVNpath /home/http/svn/test
</Location>
$ cd /home/http
$ ./httpd start


動作確認参考URL