Saturday, March 12th 2011, 3:18pm
Tags
Apache,
Facebook,
Thrift
Abstract
Hier erfahrt ihr wie ihr die Thrift Tools auf eurem Computer installiert.
Article
Zuerst müsst ihr euch die aktuelle Thrift Version herunterladen. Die aktuelle Thrift Version findet ihr auf der Apache Webseite dazu unter
http://thrift.apache.org/download/
Zum Zeitpunkt dieser Wiki Anleitung ist die Version 0.6 aktuell.
Wir laden die Version mit wget herunter
|
Bash
|
1
|
wget http://apache.prosite.de//thrift/0.6.0/thrift-0.6.0.tar.gz
|
Nach dem Download entpacken wir die Datei.
|
Bash
|
1
|
tar xvfz thrift-*.tar.gz
|
Nun stellen wir erstmal sicher, dass wir alle Voraussetzungen erfüllen um die Thrift Extension nutzen zu können.
|
Bash
|
1
|
sudo apt-get install build-essential
|
Nun kompilieren wir Thrift
Im Normalfall wird versucht alle die Thrift Erweiterungen für alle Programmiersprachen zu installieren. Meistens wird das aber nicht benötigt, deswegen lasse ich im Beispiel Perl und Python bei der Thrift Kompilierung aus.
Beachtet, dass beim Ausführen von make install noch weitere Dateien via ivy aus dem Internet kopiert werden.
|
Bash
|
1
2
3
4
|
cd thrift-*
./configure --with-perl=no --with-python=no
make
sudo make install
|
Hier mein erfolgreichen Ausgaben von
make:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
thrift 0.6.0
Building code generators ..... : cpp c_glib java as3 csharp py rb perl php erl cocoa st ocaml hs xsd html js javame
Building C++ Library ......... : no
Building C (GLib) Library .... : no
Building Java Library ........ : yes
Building C# Library .......... : no
Building Python Library ...... : no
Building Ruby Library ........ : no
Building Haskell Library ..... : no
Building Perl Library ........ : no
Building PHP Library ......... : yes
Building Erlang Library ...... : yes
Using javac .................. : javac
Using java ................... : java
Using ant .................... : /usr/bin/ant
Using php-config ............. : /usr/bin/php-config
Using erlc ................... : /usr/bin/erlc
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.
|
Request deletion
report critical content