もっとスマートにできると思われるけど、動作した環境でやったことをまとめ。
1.さくらでビルドした環境
- apr-1.2.2 http://apr.apache.org/
- apr-util-1.2.2 http://apr.apache.org/
- BerkeleyDB 4.3.29 http://dev.sleepycat.com/downloads/releasehistorybdb.html
- file 4.16 ftp://ftp8.jp.freebsd.org/pub/FreeBSD/distfiles/file-4.16.tar.gz
- 上記を、–prefix=/home/user_name/localで、configure make make install
2.Rast-0.3.1 ビルド
Rast-0.3.1/src/merger.c Xe-kdoo様のパッチを引用。
--- merger.c.orig 2005-09-21 07:04:00.000000000 +0900 +++ merger.c 2005-09-21 07:02:51.000000000 +0900 @@ -33,4 +33,6 @@ const char *merger_encoding, *encoding; int i; + rast_merger_t *db = (rast_merger_t *) + apr_palloc(pool, sizeof(rast_merger_t)); if (num_merge_dbs base = default_base;
Configure&Make
%setenv LD_RUN_PATH /home/user_name/local/lib %setenv LIBS "-L/usr/local/lib -liconv" %./configure --prefix=/home/user_name/local --with-apr-config=/home/user_name/local/bin/apr-1-config --with-apu-config=/home/user_name/local/bin/apu-1-config --with-db-includes="-I/home/user_name/local/include" --with-db-libs="-L/home/user_name/local/lib -ldb-4.3" %make %make install
3.tDiary-Rastへの対応
$tDiary/index.rb $tDiary/update.rb $tDiary/rast-search.rb $tDiary/misc/plugin/rast-register.rb の先頭を
#!/usr/bin/env LD_LIBRARY_PATH=/home/user_name/local/lib ruby
に変更。