thriftを野良ビルドしてみた。
まずは、ビルドに必要なものを入れる。debianな人は、
$ sudo aptitude install automake autoconf libtoolで、macでbrewな人は、こんな感じ。
$ brew install automake autoconf libtool今回は、thriftコンパイラだけあれば良いのでランタイムは全部without。
$ ./configure --without-{cpp,csharp,d,erlang,go,haskell,java,perl,php,php_extension,python,qt4,ruby} ... checking for ranlib... (cached) ranlib ./configure: line 16968: syntax error near unexpected token `QT,' ./configure: line 16968: ` PKG_CHECK_MODULES(QT, QtCore >= 4.3, QtNetwork >= 4.3, have_qt=yes, have_qt=no)'あらら。
pkg-config
が足りないみたい。
$ sudo aptitude install pkg-config
$ brew install pkg-config作ってしまったファイルを消して、もう一度ビルドすればOK。
$ ./cleanup.sh $ ./bootstrap.sh $ ./configure --without-{cpp,csharp,d,erlang,go,haskell,java,perl,php,php_extension,python,qt4,ruby} ... thrift 0.9.1 Building C++ Library ......... : no Building C (GLib) Library .... : no Building Java Library ........ : no Building C# Library .......... : no Building Python Library ...... : no Building Ruby Library ........ : no Building Haskell Library ..... : no Building Perl Library ........ : no Building PHP Library ......... : no Building Erlang Library ...... : no Building Go Library .......... : no Building D Library ........... : no If something is missing that you think should be present, please skim the output of configure to find the missing component. Details are present in config.log.