blob: df12640439e079c61f328eb25de2bd84e1ae394b [file] [log] [blame]
henriqueac8d8e22014-07-23 23:31:04 +02001#!/bin/sh
2
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance
9# with the License. You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing,
14# software distributed under the License is distributed on an
15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16# KIND, either express or implied. See the License for the
17# specific language governing permissions and limitations
18# under the License.
19
20SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
21
22# Mainly aiming Travis CI's Ubuntu machines for now
23# see what we need: http://thrift.apache.org/docs/install/ubuntu
24
henriqueac8d8e22014-07-23 23:31:04 +020025# Java dependencies
26sudo apt-get install -qq ant openjdk-7-jdk
cdwijayarathnad9217912014-08-15 22:18:30 +053027sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
henriqueac8d8e22014-07-23 23:31:04 +020028
29# Python dependencies
Nobuaki Sukegawa760511f2015-11-06 21:24:16 +090030sudo apt-get install -qq python-all python-all-dev python-all-dbg python-setuptools python-support python-twisted python-six
henriqueac8d8e22014-07-23 23:31:04 +020031
32# Ruby dependencies
33sudo apt-get install -qq ruby ruby-dev
34sudo gem install bundler rake
35
36# Perl dependencies
Jim Kingf5f1b352015-06-24 13:47:24 -040037sudo apt-get install -qq libbit-vector-perl libclass-accessor-class-perl libio-socket-ssl-perl libnet-ssleay-perl libcrypt-ssleay-perl
henriqueac8d8e22014-07-23 23:31:04 +020038
39# Php dependencies
40sudo apt-get install -qq php5 php5-dev php5-cli php-pear re2c
41
42# GlibC dependencies
43sudo apt-get install -qq libglib2.0-dev
44
45# Erlang dependencies
alisdair sullivana559f8d2014-11-17 20:28:35 -080046sudo apt-get install -qq erlang-base erlang-eunit erlang-dev erlang-tools
henriqueac8d8e22014-07-23 23:31:04 +020047
48# GO dependencies
49echo "golang-go golang-go/dashboard boolean false" | debconf-set-selections
50sudo apt-get -y install -qq golang golang-go
51
henriquec0a7d722014-07-26 13:11:12 +020052# Haskell dependencies
53sudo add-apt-repository -y ppa:hvr/ghc
54sudo apt-get update
55sudo apt-get install cabal-install-1.20 ghc-$GHCVER
henriqueac8d8e22014-07-23 23:31:04 +020056
57# Lua dependencies
58sudo apt-get install -qq lua5.2 lua5.2-dev
59
60# Node.js dependencies
61sudo apt-get install -qq nodejs nodejs-dev npm
62sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
63
64# CSharp
65sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil
Roger Meier87202602014-08-15 22:16:02 +020066sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime nsis