2016-08-16 18:45:24 +00:00
|
|
|
#!/usr/bin/env sh
|
2016-08-01 05:25:37 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
2016-08-16 18:45:24 +00:00
|
|
|
# Shell script for installing pre-requisite packages for solidity on a
|
2016-08-01 05:25:37 +00:00
|
|
|
# variety of Linux and other UNIX-derived platforms.
|
|
|
|
#
|
|
|
|
# This is an "infrastucture-as-code" alternative to the manual build
|
|
|
|
# instructions pages which we previously maintained at:
|
|
|
|
# http://solidity.readthedocs.io/en/latest/installing-solidity.html
|
|
|
|
#
|
|
|
|
# The aim of this script is to simplify things down to the following basic
|
|
|
|
# flow for all supported operating systems:
|
|
|
|
#
|
|
|
|
# - git clone --recursive
|
2016-08-16 18:54:48 +00:00
|
|
|
# - ./scripts/install_deps.sh
|
2016-08-01 05:25:37 +00:00
|
|
|
# - cmake && make
|
|
|
|
#
|
|
|
|
# TODO - There is no support here yet for cross-builds in any form, only
|
|
|
|
# native builds. Expanding the functionality here to cover the mobile,
|
|
|
|
# wearable and SBC platforms covered by doublethink and EthEmbedded would
|
|
|
|
# also bring in support for Android, iOS, watchOS, tvOS, Tizen, Sailfish,
|
|
|
|
# Maemo, MeeGo and Yocto.
|
|
|
|
#
|
|
|
|
# The documentation for solidity is hosted at:
|
|
|
|
#
|
|
|
|
# http://solidity.readthedocs.io/
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# This file is part of solidity.
|
|
|
|
#
|
|
|
|
# solidity is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# solidity is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with solidity. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
#
|
|
|
|
# (c) 2016 solidity contributors.
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2016-09-07 07:51:56 +00:00
|
|
|
set -e
|
|
|
|
|
2016-08-01 05:25:37 +00:00
|
|
|
# Check for 'uname' and abort if it is not available.
|
|
|
|
uname -v > /dev/null 2>&1 || { echo >&2 "ERROR - solidity requires 'uname' to identify the platform."; exit 1; }
|
|
|
|
|
2016-08-16 18:54:48 +00:00
|
|
|
# See http://unix.stackexchange.com/questions/92199/how-can-i-reliably-get-the-operating-systems-name
|
2016-08-16 18:11:58 +00:00
|
|
|
detect_linux_distro() {
|
2016-08-16 18:31:52 +00:00
|
|
|
if [ $(command -v lsb_release) ]; then
|
|
|
|
DISTRO=$(lsb_release -is)
|
|
|
|
elif [ -f /etc/os-release ]; then
|
|
|
|
# extract 'foo' from NAME=foo, only on the line with NAME=foo
|
|
|
|
DISTRO=$(sed -n -e 's/^NAME="\(.*\)\"/\1/p' /etc/os-release)
|
2016-09-12 09:15:49 +00:00
|
|
|
elif [ -f /etc/centos-release ]; then
|
2017-02-07 22:20:48 +00:00
|
|
|
DISTRO=CentOS
|
2016-08-16 18:31:52 +00:00
|
|
|
else
|
|
|
|
DISTRO=''
|
|
|
|
fi
|
2016-08-16 18:11:58 +00:00
|
|
|
echo $DISTRO
|
|
|
|
}
|
|
|
|
|
2016-08-01 05:25:37 +00:00
|
|
|
case $(uname -s) in
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# macOS
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Darwin)
|
|
|
|
case $(sw_vers -productVersion | awk -F . '{print $1"."$2}') in
|
|
|
|
10.9)
|
|
|
|
echo "Installing solidity dependencies on OS X 10.9 Mavericks."
|
|
|
|
;;
|
|
|
|
10.10)
|
|
|
|
echo "Installing solidity dependencies on OS X 10.10 Yosemite."
|
|
|
|
;;
|
|
|
|
10.11)
|
|
|
|
echo "Installing solidity dependencies on OS X 10.11 El Capitan."
|
|
|
|
;;
|
|
|
|
10.12)
|
|
|
|
echo "Installing solidity dependencies on macOS 10.12 Sierra."
|
|
|
|
;;
|
2018-01-24 02:33:22 +00:00
|
|
|
10.13)
|
|
|
|
echo "Installing solidity dependencies on macOS 10.13 High Sierra."
|
|
|
|
;;
|
2016-08-01 05:25:37 +00:00
|
|
|
*)
|
|
|
|
echo "Unsupported macOS version."
|
2018-01-24 02:33:22 +00:00
|
|
|
echo "We only support Mavericks, Yosemite, El Capitan, Sierra and High Sierra."
|
2016-08-01 05:25:37 +00:00
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Check for Homebrew install and abort if it is not installed.
|
|
|
|
brew -v > /dev/null 2>&1 || { echo >&2 "ERROR - solidity requires a Homebrew install. See http://brew.sh."; exit 1; }
|
|
|
|
brew update
|
|
|
|
brew install boost
|
|
|
|
brew install cmake
|
2017-03-20 11:07:35 +00:00
|
|
|
if [ "$CI" = true ]; then
|
2017-02-03 00:52:59 +00:00
|
|
|
brew upgrade cmake
|
|
|
|
brew tap ethereum/ethereum
|
|
|
|
brew install cpp-ethereum
|
|
|
|
brew linkapps cpp-ethereum
|
|
|
|
else
|
|
|
|
brew upgrade
|
|
|
|
fi
|
2016-08-01 05:25:37 +00:00
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# FreeBSD
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
FreeBSD)
|
|
|
|
echo "Installing solidity dependencies on FreeBSD."
|
|
|
|
echo "ERROR - 'install_deps.sh' doesn't have FreeBSD support yet."
|
|
|
|
echo "Please let us know if you see this error message, and we can work out what is missing."
|
2017-07-13 19:04:19 +00:00
|
|
|
echo "Drop us a message at https://gitter.im/ethereum/solidity-dev."
|
2016-08-01 05:25:37 +00:00
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Linux
|
|
|
|
#------------------------------------------------------------------------------
|
2016-08-30 11:29:37 +00:00
|
|
|
|
2016-08-01 05:25:37 +00:00
|
|
|
Linux)
|
2016-08-16 18:11:58 +00:00
|
|
|
case $(detect_linux_distro) in
|
2016-08-01 05:25:37 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Arch Linux
|
|
|
|
#------------------------------------------------------------------------------
|
2016-08-30 11:29:37 +00:00
|
|
|
|
2018-05-17 10:07:33 +00:00
|
|
|
Arch*)
|
2016-08-01 05:25:37 +00:00
|
|
|
#Arch
|
|
|
|
echo "Installing solidity dependencies on Arch Linux."
|
|
|
|
|
|
|
|
# All our dependencies can be found in the Arch Linux official repositories.
|
|
|
|
# See https://wiki.archlinux.org/index.php/Official_repositories
|
2018-01-17 08:36:52 +00:00
|
|
|
sudo pacman -Syu \
|
2016-08-01 05:25:37 +00:00
|
|
|
base-devel \
|
2016-08-30 11:29:37 +00:00
|
|
|
boost \
|
2016-08-01 05:25:37 +00:00
|
|
|
cmake \
|
|
|
|
git \
|
2018-05-17 10:07:33 +00:00
|
|
|
cvc4
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Alpine Linux
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2016-08-16 18:44:26 +00:00
|
|
|
"Alpine Linux")
|
2016-08-01 05:25:37 +00:00
|
|
|
#Alpine
|
|
|
|
echo "Installing solidity dependencies on Alpine Linux."
|
2016-08-08 22:03:30 +00:00
|
|
|
|
|
|
|
# All our dependencies can be found in the Alpine Linux official repositories.
|
|
|
|
# See https://pkgs.alpinelinux.org/
|
2016-08-30 11:29:37 +00:00
|
|
|
|
2016-08-08 22:03:30 +00:00
|
|
|
apk update
|
2018-05-23 14:50:27 +00:00
|
|
|
apk add boost-dev build-base cmake git
|
2016-08-08 22:03:30 +00:00
|
|
|
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Debian
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2017-09-18 10:53:31 +00:00
|
|
|
Debian*)
|
2016-08-01 05:25:37 +00:00
|
|
|
#Debian
|
2017-09-18 10:53:31 +00:00
|
|
|
. /etc/os-release
|
2017-07-13 19:04:19 +00:00
|
|
|
install_z3=""
|
2017-09-18 10:53:31 +00:00
|
|
|
case $VERSION_ID in
|
|
|
|
7)
|
2016-08-01 05:25:37 +00:00
|
|
|
#wheezy
|
|
|
|
echo "Installing solidity dependencies on Debian Wheezy (7.x)."
|
|
|
|
echo "ERROR - 'install_deps.sh' doesn't have Debian Wheezy support yet."
|
|
|
|
echo "See http://solidity.readthedocs.io/en/latest/installing-solidity.html for manual instructions."
|
|
|
|
echo "If you would like to get 'install_deps.sh' working for Debian Wheezy, that would be fantastic."
|
2017-07-13 19:04:19 +00:00
|
|
|
echo "Drop us a message at https://gitter.im/ethereum/solidity-dev."
|
2016-08-01 05:25:37 +00:00
|
|
|
echo "See also https://github.com/ethereum/webthree-umbrella/issues/495 where we are working through Alpine support."
|
|
|
|
exit 1
|
|
|
|
;;
|
2017-09-18 10:53:31 +00:00
|
|
|
8)
|
2016-08-01 05:25:37 +00:00
|
|
|
#jessie
|
|
|
|
echo "Installing solidity dependencies on Debian Jesse (8.x)."
|
|
|
|
;;
|
2017-09-18 10:53:31 +00:00
|
|
|
9)
|
2016-08-01 05:25:37 +00:00
|
|
|
#stretch
|
|
|
|
echo "Installing solidity dependencies on Debian Stretch (9.x)."
|
2017-07-13 19:04:19 +00:00
|
|
|
install_z3="libz3-dev"
|
|
|
|
;;
|
2017-09-18 10:53:31 +00:00
|
|
|
10)
|
2017-07-13 19:04:19 +00:00
|
|
|
#buster
|
|
|
|
echo "Installing solidity dependencies on Debian Buster (10.x)."
|
|
|
|
install_z3="libz3-dev"
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
#other Debian
|
|
|
|
echo "Installing solidity dependencies on unknown Debian version."
|
2017-07-13 19:04:19 +00:00
|
|
|
echo "ERROR - This might not work, but we are trying anyway."
|
|
|
|
echo "Drop us a message at https://gitter.im/ethereum/solidity-dev"
|
|
|
|
install_z3="libz3-dev"
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Install "normal packages"
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
libboost-all-dev \
|
2017-07-13 19:04:19 +00:00
|
|
|
unzip \
|
2017-08-21 15:02:47 +00:00
|
|
|
"$install_z3"
|
2017-07-13 19:04:19 +00:00
|
|
|
|
2016-08-01 05:25:37 +00:00
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Fedora
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Fedora)
|
|
|
|
#Fedora
|
|
|
|
echo "Installing solidity dependencies on Fedora."
|
|
|
|
|
|
|
|
# Install "normal packages"
|
|
|
|
# See https://fedoraproject.org/wiki/Package_management_system.
|
|
|
|
dnf install \
|
2016-08-30 11:29:37 +00:00
|
|
|
autoconf \
|
2016-08-01 05:25:37 +00:00
|
|
|
automake \
|
|
|
|
boost-devel \
|
2017-10-13 15:01:59 +00:00
|
|
|
boost-static \
|
2016-08-01 05:25:37 +00:00
|
|
|
cmake \
|
|
|
|
gcc \
|
|
|
|
gcc-c++ \
|
|
|
|
git \
|
|
|
|
libtool
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# OpenSUSE
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
"openSUSE project")
|
|
|
|
#openSUSE
|
|
|
|
echo "Installing solidity dependencies on openSUSE."
|
|
|
|
echo "ERROR - 'install_deps.sh' doesn't have openSUSE support yet."
|
|
|
|
echo "See http://solidity.readthedocs.io/en/latest/installing-solidity.html for manual instructions."
|
|
|
|
echo "If you would like to get 'install_deps.sh' working for openSUSE, that would be fantastic."
|
|
|
|
echo "See https://github.com/ethereum/webthree-umbrella/issues/552."
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Ubuntu
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2017-12-20 07:57:40 +00:00
|
|
|
Ubuntu|LinuxMint)
|
|
|
|
#LinuxMint is a distro on top of Ubuntu.
|
2016-08-01 05:25:37 +00:00
|
|
|
#Ubuntu
|
2017-07-13 19:04:19 +00:00
|
|
|
install_z3=""
|
2016-08-01 05:25:37 +00:00
|
|
|
case $(lsb_release -cs) in
|
2017-12-20 07:57:40 +00:00
|
|
|
trusty|qiana|rebecca|rafaela|rosa)
|
2016-08-01 05:25:37 +00:00
|
|
|
echo "Installing solidity dependencies on Ubuntu Trusty Tahr (14.04)."
|
2017-12-20 07:57:40 +00:00
|
|
|
echo "Or, you may also be running Linux Mint Qiana / Rebecca / Rafaela / Rosa (base: Ubuntu Trusty Tahr (14.04).)"
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
|
|
|
utopic)
|
|
|
|
echo "Installing solidity dependencies on Ubuntu Utopic Unicorn (14.10)."
|
|
|
|
;;
|
|
|
|
vivid)
|
|
|
|
echo "Installing solidity dependencies on Ubuntu Vivid Vervet (15.04)."
|
|
|
|
;;
|
|
|
|
wily)
|
|
|
|
echo "Installing solidity dependencies on Ubuntu Wily Werewolf (15.10)."
|
|
|
|
;;
|
2017-12-20 07:57:40 +00:00
|
|
|
xenial|sarah|serena|sonya|sylvia)
|
2016-08-01 05:25:37 +00:00
|
|
|
echo "Installing solidity dependencies on Ubuntu Xenial Xerus (16.04)."
|
2017-12-20 07:57:40 +00:00
|
|
|
echo "Or, you may also be running Linux Mint Sarah / Serena / Sonya / Sylvia (base: Ubuntu Xenial Xerus (16.04).)"
|
2017-07-13 19:04:19 +00:00
|
|
|
install_z3="libz3-dev"
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
|
|
|
yakkety)
|
|
|
|
echo "Installing solidity dependencies on Ubuntu Yakkety Yak (16.10)."
|
2017-07-13 19:04:19 +00:00
|
|
|
install_z3="libz3-dev"
|
|
|
|
;;
|
|
|
|
zesty)
|
|
|
|
echo "Installing solidity dependencies on Ubuntu Zesty (17.04)."
|
|
|
|
install_z3="libz3-dev"
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
2017-11-10 19:01:13 +00:00
|
|
|
artful)
|
|
|
|
echo "Installing solidity dependencies on Ubuntu Artful (17.10)."
|
|
|
|
install_z3="libz3-dev"
|
|
|
|
;;
|
2018-04-18 12:56:54 +00:00
|
|
|
bionic)
|
|
|
|
echo "Installing solidity dependencies on Ubuntu Bionic (18.04)."
|
|
|
|
install_z3="libz3-dev"
|
|
|
|
;;
|
2017-12-20 07:57:40 +00:00
|
|
|
betsy)
|
|
|
|
#do not try anything for betsy.
|
|
|
|
echo "Linux Mint Betsy is not supported at the moment as it runs off of Debian."
|
|
|
|
echo "We only support Sylvia, Sonya, Serena, Sarah, Rosa, Rafaela, Rebecca, and Qiana."
|
|
|
|
echo "See http://solidity.readthedocs.io/en/latest/installing-solidity.html for manual instructions."
|
|
|
|
echo "If you would like to get your distro working, that would be fantastic."
|
|
|
|
echo "Drop us a message at https://gitter.im/ethereum/solidity-dev."
|
|
|
|
exit 1
|
|
|
|
;;
|
2016-08-01 05:25:37 +00:00
|
|
|
*)
|
|
|
|
#other Ubuntu
|
2016-08-01 22:37:34 +00:00
|
|
|
echo "ERROR - Unknown or unsupported Ubuntu version (" $(lsb_release -cs) ")"
|
2017-07-13 19:04:19 +00:00
|
|
|
echo "ERROR - This might not work, but we are trying anyway."
|
|
|
|
echo "Please drop us a message at https://gitter.im/ethereum/solidity-dev."
|
2018-04-18 12:56:54 +00:00
|
|
|
echo "We only support Trusty, Utopic, Vivid, Wily, Xenial, Yakkety, Zesty, Artful and Bionic."
|
2017-07-13 19:04:19 +00:00
|
|
|
install_z3="libz3-dev"
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
git \
|
2017-08-21 15:02:47 +00:00
|
|
|
libboost-all-dev \
|
|
|
|
"$install_z3"
|
2017-04-19 07:05:43 +00:00
|
|
|
if [ "$CI" = true ]; then
|
2017-09-28 14:01:10 +00:00
|
|
|
# install Z3 from PPA if the distribution does not provide it
|
2018-05-17 10:07:33 +00:00
|
|
|
if ! dpkg -l libz3-dev > /dev/null 2>&1
|
2017-09-28 14:01:10 +00:00
|
|
|
then
|
|
|
|
sudo apt-add-repository -y ppa:hvr/z3
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install libz3-dev
|
|
|
|
fi
|
|
|
|
|
2017-04-19 07:05:43 +00:00
|
|
|
# Install 'eth', for use in the Solidity Tests-over-IPC.
|
|
|
|
# We will not use this 'eth', but its dependencies
|
|
|
|
sudo add-apt-repository -y ppa:ethereum/ethereum
|
|
|
|
sudo add-apt-repository -y ppa:ethereum/ethereum-dev
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install eth
|
|
|
|
fi
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
2016-09-12 09:15:49 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# CentOS
|
|
|
|
# CentOS needs some more testing. This is the general idea of packages
|
|
|
|
# needed, but some tweaking/improvements can definitely happen
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
CentOS)
|
2016-09-14 20:29:11 +00:00
|
|
|
read -p "This script will heavily modify your system in order to allow for compilation of Solidity. Are you sure? [Y/N]" -n 1 -r
|
|
|
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
|
|
# Make Sure we have the EPEL repos
|
|
|
|
sudo yum -y install epel-release
|
|
|
|
# Get g++ 4.8
|
2017-12-12 14:47:02 +00:00
|
|
|
sudo rpm --import http://linuxsoft.cern.ch/cern/slc6X/i386/RPM-GPG-KEY-cern
|
2016-09-14 20:29:11 +00:00
|
|
|
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
|
|
|
|
sudo yum -y install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils
|
|
|
|
|
|
|
|
# Enable the devtoolset2 usage so global gcc/g++ become the 4.8 one.
|
|
|
|
# As per https://gist.github.com/stephenturner/e3bc5cfacc2dc67eca8b, what you should do afterwards is
|
|
|
|
# to add this line:
|
|
|
|
# source /opt/rh/devtoolset-2/enable
|
|
|
|
# to your bashrc so that this happens automatically at login
|
|
|
|
scl enable devtoolset-2 bash
|
|
|
|
|
|
|
|
# Get cmake
|
|
|
|
sudo yum -y remove cmake
|
|
|
|
sudo yum -y install cmake3
|
|
|
|
sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
|
|
|
|
|
|
|
|
# Get latest boost thanks to this guy: http://vicendominguez.blogspot.de/2014/04/boost-c-library-rpm-packages-for-centos.html
|
|
|
|
sudo yum -y remove boost-devel
|
|
|
|
sudo wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo
|
|
|
|
sudo yum install boost-devel
|
|
|
|
else
|
|
|
|
echo "Aborted CentOS Solidity Dependency Installation";
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-09-12 09:15:49 +00:00
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-01 05:25:37 +00:00
|
|
|
*)
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Other (unknown) Linux
|
|
|
|
# Major and medium distros which we are missing would include Mint, CentOS,
|
|
|
|
# RHEL, Raspbian, Cygwin, OpenWrt, gNewSense, Trisquel and SteamOS.
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#other Linux
|
|
|
|
echo "ERROR - Unsupported or unidentified Linux distro."
|
|
|
|
echo "See http://solidity.readthedocs.io/en/latest/installing-solidity.html for manual instructions."
|
|
|
|
echo "If you would like to get your distro working, that would be fantastic."
|
2017-07-13 19:04:19 +00:00
|
|
|
echo "Drop us a message at https://gitter.im/ethereum/solidity-dev."
|
2016-08-01 05:25:37 +00:00
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Other platform (not Linux, FreeBSD or macOS).
|
|
|
|
# Not sure what might end up here?
|
|
|
|
# Maybe OpenBSD, NetBSD, AIX, Solaris, HP-UX?
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
*)
|
|
|
|
#other
|
|
|
|
echo "ERROR - Unsupported or unidentified operating system."
|
|
|
|
echo "See http://solidity.readthedocs.io/en/latest/installing-solidity.html for manual instructions."
|
|
|
|
echo "If you would like to get your operating system working, that would be fantastic."
|
2017-07-13 19:04:19 +00:00
|
|
|
echo "Drop us a message at https://gitter.im/ethereum/solidity-dev."
|
2016-08-01 05:25:37 +00:00
|
|
|
;;
|
2017-03-20 11:07:35 +00:00
|
|
|
esac
|