@@ -68,67 +68,75 @@ Set up Homebrew:
68
68
brew install llvm --HEAD --with-clang
69
69
brew install qt5 --with-d-bus # add --verbose if long waits with a stale screen drive you crazy as well
70
70
71
- Ubuntu
72
- ------
71
+ Ubuntu Trusty (14.04)
72
+ ---------------------
73
73
74
- Below are the build instructions for the latest versions of Ubuntu. The best
75
- supported platform as of December 2014 is Ubuntu 14.04, 64 bit, with at least 2
76
- GB RAM. All our tests are done with this version. Community contributions for
77
- other versions are welcome!
78
-
79
- Install dependencies:
80
-
81
- Before you can build the source, you need several tools and dependencies for the application to get started.
82
-
83
- First, update your repositories. Not all packages are provided in the main
84
- Ubuntu repository, those you'll get from the Ethereum PPA and the LLVM archive.
74
+ Below are the instructions to install the minimal dependencies required
75
+ to compile Solidity on Ubuntu 14.04 (Trusty Tahr).
85
76
86
77
.. note ::
87
78
88
- Ubuntu 14.04 users, you'll need the latest version of cmake. For this, use:
89
- `sudo apt-add-repository ppa:george-edison55/cmake-3.x `
90
-
91
- Now add all the rest:
79
+ These dependencies are not enough to compile the GUIs (Alethzero and Mix).
92
80
93
81
.. code-block :: bash
94
82
95
- sudo apt-get -y update
96
- sudo apt-get -y install language-pack-en-base
97
- sudo dpkg-reconfigure locales
98
- sudo apt-get -y install software-properties-common
83
+ sudo apt-get -y install build-essential git cmake libgmp-dev libboost-all-dev \
84
+ libjsoncpp-dev libleveldb-dev libcurl4-openssl-dev libminiupnpc-dev \
85
+ libmicrohttpd-dev
86
+
99
87
sudo add-apt-repository -y ppa:ethereum/ethereum
100
88
sudo add-apt-repository -y ppa:ethereum/ethereum-dev
101
89
sudo apt-get -y update
102
- sudo apt-get -y upgrade
90
+ sudo apt-get -y upgrade # this will update cmake to version 3.x
91
+ sudo apt-get -y install libcryptopp-dev libjson-rpc-cpp-dev
103
92
104
- For Ubuntu 15.04 (Vivid Vervet) or older, use the following command to add the develop packages:
93
+ Ubuntu Xenial (16.04)
94
+ ---------------------
105
95
106
- .. code-block :: bash
96
+ Below are the instructions to install the minimal dependencies required
97
+ to compile Solidity on Ubuntu 16.04 (Xenial Xerus).
107
98
108
- 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
99
+ One of the dependencies (Crypto++ Library, with version >= 5.6.2) can be
100
+ installed either by adding the Ethereum PPA (Option 1) or by backporting
101
+ ``libcrypto++ `` from Ubuntu Development to Ubuntu Xenial (Option 2).
109
102
110
- For Ubuntu 15.10 (Wily Werewolf) or newer, use the following command instead :
103
+ .. note : :
111
104
112
- .. code-block :: bash
105
+ These dependencies are not enough to compile the GUIs (Alethzero and Mix).
113
106
114
- 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
107
+ .. code-block :: bash
115
108
116
- The reason for the change is that ``libjsonrpccpp-dev `` is available in the universe repository for newer versions of Ubuntu.
109
+ sudo apt-get -y install build-essential git cmake libgmp-dev libboost-all-dev \
110
+ libjsoncpp-dev libleveldb-dev libcurl4-openssl-dev libminiupnpc-dev \
111
+ libjsonrpccpp-dev libmicrohttpd-dev
112
+
113
+ # (Option 1) For those willing to add the Ethereum PPA:
114
+ sudo add-apt-repository -y ppa:ethereum/ethereum
115
+ sudo add-apt-repository -y ppa:ethereum/ethereum-dev
116
+ sudo apt-get -y update
117
+ sudo apt-get -y upgrade
118
+ sudo apt-get -y install libcryptopp-dev
119
+
120
+ # # (Option 2) For those willing to backport libcrypto++:
121
+ # sudo apt-get -y install ubuntu-dev-tools
122
+ # sudo pbuilder create
123
+ # mkdir ubuntu
124
+ # cd ubuntu
125
+ # backportpackage --workdir=. --build --dont-sign libcrypto++
126
+ # sudo dpkg -i buildresult/libcrypto++6_*.deb buildresult/libcrypto++-dev_*.deb
127
+ # cd ..
117
128
118
129
Building
119
130
--------
120
131
121
- Run this if you plan on installing Solidity only, ignore errors at the end as
122
- they relate only to Alethzero and Mix
132
+ Run this if you plan on installing Solidity only:
123
133
124
134
.. code-block :: bash
125
135
126
136
git clone --recursive https://github.com/ethereum/webthree-umbrella.git
127
137
cd webthree-umbrella
128
138
./webthree-helpers/scripts/ethupdate.sh --no-push --simple-pull --project solidity # update Solidity repo
129
- ./webthree-helpers/scripts/ethbuild.sh --no-git --project solidity --all --cores 4 -DEVMJIT=0 # build Solidity and others
130
- # enabling DEVMJIT on OS X will not build
131
- # feel free to enable it on Linux
139
+ ./webthree-helpers/scripts/ethbuild.sh --no-git --project solidity --cores 4 -DEVMJIT=0 -DETHASHCL=0 # build Solidity only
132
140
133
141
If you opted to install Alethzero and Mix:
134
142
0 commit comments