blob: 90526c8cb9d297cc1c61b6c058d8f21fa8ce36e3 [file] [log] [blame] [view]
Roger Meiere9f00cb2014-05-30 14:35:34 +02001---
2title: "Ubuntu Install"
3kind: doc
4---
5## Debian or Ubuntu setup
6The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a Debian/Ubuntu Linux based system.
7
8 sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
9
10Then install the Java JDK of your choice. Type **javac** to see a list of available packages, pick the one you prefer and **apt-get install** it.
11
12Debian Lenny Users need some packages from backports
13
14 sudo apt-get -t lenny-backports install automake libboost-test-dev
15
16## Optional packages
17
18Some other packages depend on what languages you want Thrift to support.
19
20 * Ruby
21 * ruby-full ruby-dev ruby-rspec rake rubygems libdaemons-ruby libgemplugin-ruby mongrel
22 * Python
23 * python-all python-all-dev python-all-dbg
24 * Perl
25 * libbit-vector-perl libclass-accessor-class-perl
26 * Php, install
27 * php5-dev php5-cli phpunit
28 * C_glib
29 * libglib2.0-dev
30 * Erlang
31 * erlang-base erlang-eunit erlang-dev
32 * Csharp
33 * mono-gmcs mono-devel libmono-system-web2.0-cil nunit nunit-console
34 * Haskell
35 * ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev
36 * Thrift Compiler for Windows
37 * mingw32 mingw32-binutils mingw32-runtime
38
39
40## Additional reading
41
42For more information on the requirements see: [Apache Thrift Requirements](/docs/install)
43
44For more information on building and installing Thrift see: [Building from source](/docs/BuildingFromSource)