From 840351982d365ef276779f77cfdb876955e28122 Mon Sep 17 00:00:00 2001 From: Giacomo Tazzari Date: Sat, 4 Jun 2016 21:33:53 +0200 Subject: [PATCH 1/3] Instructions to build Solidity on Ubuntu 16.04 Minimal dependencies for Solidity on Ubuntu 16.04, removed those for older Ubuntu versions for now (they were a bit confusing). Removed --all and added -DETHASHCL=0 to ethbuild.sh when building Solidity only. --- docs/installing-solidity.rst | 64 ++++++++++++++---------------------- 1 file changed, 25 insertions(+), 39 deletions(-) diff --git a/docs/installing-solidity.rst b/docs/installing-solidity.rst index 400aab5ba..c8f1a7282 100644 --- a/docs/installing-solidity.rst +++ b/docs/installing-solidity.rst @@ -68,67 +68,53 @@ Set up Homebrew: brew install llvm --HEAD --with-clang brew install qt5 --with-d-bus # add --verbose if long waits with a stale screen drive you crazy as well -Ubuntu ------- +Ubuntu 16.04 +------------ -Below are the build instructions for the latest versions of Ubuntu. The best -supported platform as of December 2014 is Ubuntu 14.04, 64 bit, with at least 2 -GB RAM. All our tests are done with this version. Community contributions for -other versions are welcome! +Below are the instructions to install the minimal dependencies required +to compile Solidity on Ubuntu 16.04 (Xenial Xerus). -Install dependencies: - -Before you can build the source, you need several tools and dependencies for the application to get started. - -First, update your repositories. Not all packages are provided in the main -Ubuntu repository, those you'll get from the Ethereum PPA and the LLVM archive. +One of the dependencies (Crypto++ Library, with version >= 5.6.2) can be +installed either by adding the Ethereum PPA (Option 1) or by backporting +``libcrypto++`` from Ubuntu Development to Ubuntu Xenial .. note:: - Ubuntu 14.04 users, you'll need the latest version of cmake. For this, use: - `sudo apt-add-repository ppa:george-edison55/cmake-3.x` - -Now add all the rest: + These dependencies are not enough to compile the GUIs (Alethzero and Mix) .. code-block:: bash - sudo apt-get -y update - sudo apt-get -y install language-pack-en-base - sudo dpkg-reconfigure locales - sudo apt-get -y install software-properties-common + sudo apt-get -y install build-essential git cmake libgmp-dev libboost-all-dev \ + libjsoncpp-dev libleveldb-dev libcurl4-openssl-dev libminiupnpc-dev \ + libjsonrpccpp-dev libmicrohttpd-dev + + # (Option 1) For those willing to add the Ethereum PPA: 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 upgrade - -For Ubuntu 15.04 (Vivid Vervet) or older, use the following command to add the develop packages: - -.. code-block:: bash - - sudo apt-get -y install build-essential git cmake libboost-all-dev libgmp-dev libleveldb-dev libminiupnpc-dev libreadline-dev libncurses5-dev libcurl4-openssl-dev libcryptopp-dev libjson-rpc-cpp-dev libmicrohttpd-dev libjsoncpp-dev libedit-dev libz-dev - -For Ubuntu 15.10 (Wily Werewolf) or newer, use the following command instead: - -.. code-block:: bash - - sudo apt-get -y install build-essential git cmake libboost-all-dev libgmp-dev libleveldb-dev libminiupnpc-dev libreadline-dev libncurses5-dev libcurl4-openssl-dev libcryptopp-dev libjsonrpccpp-dev libmicrohttpd-dev libjsoncpp-dev libedit-dev libz-dev - -The reason for the change is that ``libjsonrpccpp-dev`` is available in the universe repository for newer versions of Ubuntu. + sudo apt-get -y install libcryptopp-dev + + ## (Option 2) For those willing to backport libcrypto++: + #sudo apt-get -y install ubuntu-dev-tools + #sudo pbuilder create + #mkdir ubuntu + #cd ubuntu + #backportpackage --workdir=. --build --dont-sign libcrypto++ + #sudo dpkg -i buildresult/libcrypto++6_*.deb buildresult/libcrypto++-dev_*.deb + #cd .. Building -------- -Run this if you plan on installing Solidity only, ignore errors at the end as -they relate only to Alethzero and Mix +Run this if you plan on installing Solidity only: .. code-block:: bash git clone --recursive https://github.com/ethereum/webthree-umbrella.git cd webthree-umbrella ./webthree-helpers/scripts/ethupdate.sh --no-push --simple-pull --project solidity # update Solidity repo - ./webthree-helpers/scripts/ethbuild.sh --no-git --project solidity --all --cores 4 -DEVMJIT=0 # build Solidity and others - #enabling DEVMJIT on OS X will not build - #feel free to enable it on Linux + ./webthree-helpers/scripts/ethbuild.sh --no-git --project solidity --cores 4 -DEVMJIT=0 -DETHASHCL=0 # build Solidity only If you opted to install Alethzero and Mix: From f3c4543099b5f57e4b3c01a1ba9137576b8dac89 Mon Sep 17 00:00:00 2001 From: Giacomo Tazzari Date: Sat, 4 Jun 2016 21:36:10 +0200 Subject: [PATCH 2/3] I forgot to finish typing a paragraph --- docs/installing-solidity.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installing-solidity.rst b/docs/installing-solidity.rst index c8f1a7282..c189dd146 100644 --- a/docs/installing-solidity.rst +++ b/docs/installing-solidity.rst @@ -76,7 +76,7 @@ to compile Solidity on Ubuntu 16.04 (Xenial Xerus). One of the dependencies (Crypto++ Library, with version >= 5.6.2) can be installed either by adding the Ethereum PPA (Option 1) or by backporting -``libcrypto++`` from Ubuntu Development to Ubuntu Xenial +``libcrypto++`` from Ubuntu Development to Ubuntu Xenial (Option 2). .. note:: From 07837e0abbd48e0544ae9dbfd4b88e573a172afe Mon Sep 17 00:00:00 2001 From: Giacomo Tazzari Date: Sun, 5 Jun 2016 17:40:03 +0200 Subject: [PATCH 3/3] Up-to-date build instructions for Ubuntu 14.04 --- docs/installing-solidity.rst | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/docs/installing-solidity.rst b/docs/installing-solidity.rst index c189dd146..a5f9b0f2e 100644 --- a/docs/installing-solidity.rst +++ b/docs/installing-solidity.rst @@ -68,8 +68,30 @@ Set up Homebrew: brew install llvm --HEAD --with-clang brew install qt5 --with-d-bus # add --verbose if long waits with a stale screen drive you crazy as well -Ubuntu 16.04 ------------- +Ubuntu Trusty (14.04) +--------------------- + +Below are the instructions to install the minimal dependencies required +to compile Solidity on Ubuntu 14.04 (Trusty Tahr). + +.. note:: + + These dependencies are not enough to compile the GUIs (Alethzero and Mix). + +.. code-block:: bash + + sudo apt-get -y install build-essential git cmake libgmp-dev libboost-all-dev \ + libjsoncpp-dev libleveldb-dev libcurl4-openssl-dev libminiupnpc-dev \ + libmicrohttpd-dev + + 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 upgrade # this will update cmake to version 3.x + sudo apt-get -y install libcryptopp-dev libjson-rpc-cpp-dev + +Ubuntu Xenial (16.04) +--------------------- Below are the instructions to install the minimal dependencies required to compile Solidity on Ubuntu 16.04 (Xenial Xerus). @@ -80,7 +102,7 @@ installed either by adding the Ethereum PPA (Option 1) or by backporting .. note:: - These dependencies are not enough to compile the GUIs (Alethzero and Mix) + These dependencies are not enough to compile the GUIs (Alethzero and Mix). .. code-block:: bash