さくらインターネットでSubversion


昨日、さくらインターネットの月額500円コースに入会してみたので、
ここにサーバとして、コツコツと環境構築していこかなと。


まずは、ソース管理をここでやるために
Subversionを導入したいと思います。


下記の手順どおりにやってみました。
参考にしたサイトはb:id:Fumio:t:Subversionに置いています。

# mkdir -p $HOME/local/src
# cd $HOME/local/src
# wget http://(Subversion URL)/subversion-1.4.3.tar.gz
# tar -xzvf subversion-1.4.3.tar.gz
# cd subversion-1.4.3.tar.gz
# ./configure --prefix=$HOME/local


むぅ。。。。

==================================================================
WARNING: skipping the build of mod_dav_svn
--with-apxs or --with-apache must be used
==================================================================
configure: Apache Portable Runtime (APR) library configuration
checking for APR... no
configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and supply the appropriate

    • with-apr option to 'configure'

or

get it with SVN and put it in a subdirectory of this source:

svn co \
http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x \
apr

Run that right here in the top level of the Subversion tree,
then run autogen.sh again.

Whichever of the above you do, you probably need to do
something similar for apr-util, either providing both

    • with-apr and --with-apr-util to 'configure', or

getting both from SVN with:

svn co \
http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x \
apr-util

configure: error: no suitable apr found

ApacheのRunTimeが無いとかで怒られる。。。


しょうがないので、手動でApacheのRunTimeをインストール。


↓こっからダウンロードして来ました。
http://apr.apache.org/


メッセージでは0.9系が欲しいと言っているけども、
ネットで調べると1.2系でも問題がないようなので、そっちをインストールすることにします。


念のため環境変数を設定

# cd $HOME
# vi .cshrc

set PATH = ($PATH /$HOME/local/bin)
setenv LD_LIBRARY_PATH $HOME/local/lib


Apache Portable RunTime(apr)をダウンロード。

# cd $HOME/local/src
# wget http://www.meisei-u.ac.jp/mirror/apache/dist/apr/apr-1.2.8.tar.gz
# wget http://www.meisei-u.ac.jp/mirror/apache/dist/apr/apr-util-1.2.8.tar.gz


こっからapr-1.2.8のインストール。

# tar -xvzf apr-1.2.8.tar.gz
# cd apr-1.2.8
# ./configure --prefix=$HOME/local --disable-static
# make
# make install


こっからapr-util-1.2.8のインストール

# cd $HOME/local/src
# tar -xvzf apr-util-1.2.8.tar.gz
# cd apr-util-1.2.8
# ./configure --prefix=$HOME/local --with-apr=$HOME/local --with-expat=/usr/local --with-iconv=/usr/local --disable-static
# make
# make install

これでaprはインストール完了です。

疲れたから続きは明日。。。