blob: 5e1ae4c49669f17604cdc12e6ccd732843a44117 [file] [log] [blame] [view]
Randy Abernethy9c50e4a2016-02-14 17:44:07 -08001## Debian/Ubuntu install
Randy Abernethy833236f2016-02-13 17:30:20 -08002The 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 Meiere9f00cb2014-05-30 14:35:34 +02003
Randy Abernethy9c50e4a2016-02-14 17:44:07 -08004 sudo apt-get install automake bison flex g++ git libboost1.55-all-dev libevent-dev libssl-dev libtool make pkg-config
Roger Meiere9f00cb2014-05-30 14:35:34 +02005
Randy Abernethy833236f2016-02-13 17:30:20 -08006Debian 7/Ubuntu 12 users need to manually install a more recent version of automake and (for C++ library and test support) boost:
Roger Meier81a1f992014-10-22 14:09:43 +02007
Randy Abernethy833236f2016-02-13 17:30:20 -08008 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 Abernethy9c50e4a2016-02-14 17:44:07 -080011 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 Meiere9f00cb2014-05-30 14:35:34 +020015
16## Optional packages
17
Randy Abernethy833236f2016-02-13 17:30:20 -080018If 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 Meiere9f00cb2014-05-30 14:35:34 +020019
Randy Abernethy833236f2016-02-13 17:30:20 -080020 * Java
Randy Abernethy9c50e4a2016-02-14 17:44:07 -080021 * 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 Abernethy833236f2016-02-13 17:30:20 -080022 * Ruby
Roger Meiere9f00cb2014-05-30 14:35:34 +020023 * 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 Meier87202602014-08-15 22:16:02 +020039 * mingw32 mingw32-binutils mingw32-runtime nsis
Roger Meiere9f00cb2014-05-30 14:35:34 +020040
41
42## Additional reading
43
44For more information on the requirements see: [Apache Thrift Requirements](/docs/install)
45
46For more information on building and installing Thrift see: [Building from source](/docs/BuildingFromSource)