thriftを野良ビルド。

Posted on
thrift

thriftを野良ビルドしてみた。

まずは、ビルドに必要なものを入れる。debianな人は、

1
$ sudo aptitude install automake autoconf libtool

で、macでbrewな人は、こんな感じ。

1
$ brew install automake autoconf libtool

今回は、thriftコンパイラだけあれば良いのでランタイムは全部without。

1
2
3
4
5
$ ./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が足りないみたい。

1
$ sudo aptitude install pkg-config
1
$ brew install pkg-config

作ってしまったファイルを消して、もう一度ビルドすればOK。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ ./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.