| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 1 | ## Debian or Ubuntu setup |
| 2 | The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a Debian/Ubuntu Linux based system. |
| 3 | |
| Roger Meier | 9cc7e86 | 2014-08-20 14:24:54 +0200 | [diff] [blame] | 4 | sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 5 | |
| 6 | Then 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. |
| 7 | |
| 8 | Debian Lenny Users need some packages from backports |
| 9 | |
| 10 | sudo apt-get -t lenny-backports install automake libboost-test-dev |
| 11 | |
| 12 | ## Optional packages |
| 13 | |
| 14 | Some other packages depend on what languages you want Thrift to support. |
| 15 | |
| 16 | * Ruby |
| 17 | * ruby-full ruby-dev ruby-rspec rake rubygems libdaemons-ruby libgemplugin-ruby mongrel |
| 18 | * Python |
| 19 | * python-all python-all-dev python-all-dbg |
| 20 | * Perl |
| 21 | * libbit-vector-perl libclass-accessor-class-perl |
| 22 | * Php, install |
| 23 | * php5-dev php5-cli phpunit |
| 24 | * C_glib |
| 25 | * libglib2.0-dev |
| 26 | * Erlang |
| 27 | * erlang-base erlang-eunit erlang-dev |
| 28 | * Csharp |
| 29 | * mono-gmcs mono-devel libmono-system-web2.0-cil nunit nunit-console |
| 30 | * Haskell |
| 31 | * ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev |
| 32 | * Thrift Compiler for Windows |
| Roger Meier | 8720260 | 2014-08-15 22:16:02 +0200 | [diff] [blame] | 33 | * mingw32 mingw32-binutils mingw32-runtime nsis |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 34 | |
| 35 | |
| 36 | ## Additional reading |
| 37 | |
| 38 | For more information on the requirements see: [Apache Thrift Requirements](/docs/install) |
| 39 | |
| 40 | For more information on building and installing Thrift see: [Building from source](/docs/BuildingFromSource) |