さくらにSubversionを入れてみる2

先週の3連休に入れる予定だったSubversion。やっと入れることができました。

環境変数

cshなので。

setenv LD_LIBRARY_PATH $HOME/local/lib

Apache Portable Runtime(APR)インストール

wget http://ftp.kddilabs.jp/infosystems/apache/apr/apr-1.2.11.tar.gz
tar xzvf apr-1.2.11.tar.gz
cd apr-1.2.11
./configure --prefix=$HOME/local --disable-static

APR-utilインストール

wget http://ftp.riken.jp/net/apache/apr/apr-util-1.2.10.tar.gz
tar xzvf apr-util-1.2.10.tar.gz
cd apr-util-1.2.10
./configure --prefix=$HOME/local --with-apr=$HOME/local  --with-expat=/usr/local --disable-static
make
make install

expatがないと言われる。
  そりゃ入れた覚えなんてないもんな。

expatインストール

XML parserらしい。

wget http://downloads.sourceforge.net/expat/expat-1.95.8.tar.gz?modtime=1090627200&big_mirror=0
tar xzvf expat-1.95.8.tar.gz
cd expat-1.95.8
./configure --prefix=$HOME/local
make
make install

再度APR-utilを。

make clean
./configure --prefix=$HOME/local --with-apr=$HOME/local  --with-expat=$HOME/local --disable-static
make
make install

neonインストール

wget http://www.webdav.org/neon/neon-0.27.2.tar.gz
tar xzvf neon-0.27.2.tar.gz
cd neon-0.27.2
./configure --prefix=$HOME/local --with-ssl=openssl --with-libs=/usr/local/ssl --enable-shared --enable-static
make
make install

SWIGインストール

今から思えばこれはいらなかったんちゃうかな、とか思ったり。
  trac入れるときだけ??

wget http://jaist.dl.sourceforge.net/sourceforge/swig/swig-1.3.29.tar.gz
tar xzvf swig-1.3.29.tar.gz
cd swig-1.3.29
./configure --prefix=$HOME/local
make
make install

Subversionインストール

wget http://subversion.tigris.org/downloads/subversion-1.4.5.tar.gz
tar xzvf subversion-1.4.5.tar.gz
cd subversion-1.4.5
./configure --prefix=$HOME/local --without-berkeley-db --with-swig=$HOME/local/bin/swig --with-apr=$HOME/local/bin/apr-1-config --with-apr-util=$HOME/local/bin/apu-1-config --with-neon=$HOME/local --disable-static --with-ssl

やっと入ってくれたよ。。。苦労させやがって。

備考

とまあこれでやっとインストールできたわけですが、もう相当時間かかりました。orz
 

setenvについて

これって1回ログアウトすると、なかったことになるんですね。。。
  知らなかった。かなりやられました。

Subversionコンパイル
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.sleepycat.com/download/index.shtml

なんてエラーが出ますが、fsfsを使うので、リポジトリ作成時に

svnadmin create --fs-type=fsfs PATH

としてやればオッケーです。

svnserve

svnserveを使いたいのですが、このままじゃなぜか使えませんでした。
  調べておきます。