MSYS/MinGW でSVN
TortoiseSVNにすればいいじゃん、と突っ込まれるかもしれないけど、コマンドラインでやりたいのです。WindowsのMSYS上で普通のLINUX用のソースがどこまで普通にビルド出来るかも試してみたい。
2011/6/20現在、うまくいかないので仕方なくバイナリ配布版を使用中。
ごく一般的なライブラリはmingw-getで取得出来る。ちょっと前はこんな便利なもの無かったと思う。
mingw-get list|less #一覧を見る mingw-get install msys-openssl msys-libopenssl mingw32-zlib msys-wget
http://www.softel.co.jp/blogs/tech/archives/1503
を参考にダウンロード&インストール。
wget http://subversion.tigris.org/downloads/subversion-1.6.9.tar.bz2 wget http://subversion.tigris.org/downloads/subversion-deps-1.6.9.tar.bz2
両方とも解凍すると同じディレクトリ名で展開される。
./configure --without-berkeley-db \ --without-apxs \ --without-swig \ --without-serf \ --with-ssl
なんかエラーがでた。
checking for library containing RSA_new... not found configure: error: could not find library containing RSA_new configure failed for neon
neonだけで
cd neon
configure
make
make install
は出来るので、neonインストール後、neonディレクトリを削除したら先に進んだ。
今度はsqlite3のエラー。
configure: checking sqlite library
checking sqlite amalgamation file version... unsupported amalgamation SQLite ver
sion
checking sqlite3.h usability... no
checking sqlite3.h presence... no
checking for sqlite3.h... no
no
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/xxx/subversion-1.6.9/sqlite-amalgamation/sqlite3.c
This file also ships as part of the subversion-deps distribution.
configure: error: Subversion requires SQLite
これも
cd sqlite-amalgamation
configure
make
makeinstall
は成功するので、sqlite-amalgamationディレクトリを削除。インストールしたsqliteを読んでくれればよいはずなので
--with-sqlite=/usr/local を追加した。すると
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
ここがyesに変わった。でも
checking sqlite library version (via header)... unsupported SQLite version configure: WARNING: no suitable sqlite found in /usr/local
と言われている。。。。subversion-depsに付属していたものなので、unsupported SQLite versionなんてことは無い筈。msys/mingwではビルド出来ないんだろうか・・・