| Randy Abernethy | 9c50e4a | 2016-02-14 17:44:07 -0800 | [diff] [blame] | 1 | ## Debian/Ubuntu install |
| Randy Abernethy | 833236f | 2016-02-13 17:30:20 -0800 | [diff] [blame] | 2 | The following command will install tools and libraries required to build and install the Apache Thrift compiler and C++ libraries on a Debian/Ubuntu Linux based system. |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 3 | |
| Randy Abernethy | 9c50e4a | 2016-02-14 17:44:07 -0800 | [diff] [blame] | 4 | sudo apt-get install automake bison flex g++ git libboost1.55-all-dev libevent-dev libssl-dev libtool make pkg-config |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 5 | |
| Randy Abernethy | 833236f | 2016-02-13 17:30:20 -0800 | [diff] [blame] | 6 | Debian 7/Ubuntu 12 users need to manually install a more recent version of automake and (for C++ library and test support) boost: |
| Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 7 | |
| Randy Abernethy | 833236f | 2016-02-13 17:30:20 -0800 | [diff] [blame] | 8 | wget http://ftp.debian.org/debian/pool/main/a/automake-1.15/automake_1.15-3_all.deb |
| 9 | sudo dpkg -i automake_1.15-3_all.deb |
| 10 | |
| Randy Abernethy | 9c50e4a | 2016-02-14 17:44:07 -0800 | [diff] [blame] | 11 | wget http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz tar xvf boost_1_60_0.tar.gz |
| 12 | cd boost_1_60_0 |
| 13 | ./bootstrap.sh |
| 14 | sudo ./b2 install |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 15 | |
| 16 | ## Optional packages |
| 17 | |
| Randy Abernethy | 833236f | 2016-02-13 17:30:20 -0800 | [diff] [blame] | 18 | If you would like to build Apache Thrift libraries for other programming languages you may need to install additional packages. The following languages require the specified additional packages: |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 19 | |
| Randy Abernethy | 833236f | 2016-02-13 17:30:20 -0800 | [diff] [blame] | 20 | * Java |
| Randy Abernethy | 9c50e4a | 2016-02-14 17:44:07 -0800 | [diff] [blame] | 21 | * To build Apache Thrift support for Java you will need to install the ant package and Java JDK v1.7 or higher. Type **javac** to see a list of available packages, pick the one you prefer and **apt-get install** it (e.g. openjdk-7-jdk). |
| Randy Abernethy | 833236f | 2016-02-13 17:30:20 -0800 | [diff] [blame] | 22 | * Ruby |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 23 | * ruby-full ruby-dev ruby-rspec rake rubygems libdaemons-ruby libgemplugin-ruby mongrel |
| 24 | * Python |
| 25 | * python-all python-all-dev python-all-dbg |
| 26 | * Perl |
| 27 | * libbit-vector-perl libclass-accessor-class-perl |
| 28 | * Php, install |
| 29 | * php5-dev php5-cli phpunit |
| 30 | * C_glib |
| 31 | * libglib2.0-dev |
| 32 | * Erlang |
| 33 | * erlang-base erlang-eunit erlang-dev |
| 34 | * Csharp |
| 35 | * mono-gmcs mono-devel libmono-system-web2.0-cil nunit nunit-console |
| 36 | * Haskell |
| 37 | * ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev |
| 38 | * Thrift Compiler for Windows |
| Roger Meier | 8720260 | 2014-08-15 22:16:02 +0200 | [diff] [blame] | 39 | * mingw32 mingw32-binutils mingw32-runtime nsis |
| Roger Meier | e9f00cb | 2014-05-30 14:35:34 +0200 | [diff] [blame] | 40 | |
| 41 | |
| 42 | ## Additional reading |
| 43 | |
| 44 | For more information on the requirements see: [Apache Thrift Requirements](/docs/install) |
| 45 | |
| 46 | For more information on building and installing Thrift see: [Building from source](/docs/BuildingFromSource) |