Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27e3781

Browse files
committed
Merge pull request argotorg#629 from giact/develop
Updated build instructions for Ubuntu 16.04
2 parents 602bcd3 + 07837e0 commit 27e3781

File tree

1 file changed

+42
-34
lines changed

1 file changed

+42
-34
lines changed

docs/installing-solidity.rst

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -68,67 +68,75 @@ Set up Homebrew:
6868
brew install llvm --HEAD --with-clang
6969
brew install qt5 --with-d-bus # add --verbose if long waits with a stale screen drive you crazy as well
7070
71-
Ubuntu
72-
------
71+
Ubuntu Trusty (14.04)
72+
---------------------
7373

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).
8576

8677
.. note::
8778

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).
9280

9381
.. code-block:: bash
9482
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+
9987
sudo add-apt-repository -y ppa:ethereum/ethereum
10088
sudo add-apt-repository -y ppa:ethereum/ethereum-dev
10189
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
10392
104-
For Ubuntu 15.04 (Vivid Vervet) or older, use the following command to add the develop packages:
93+
Ubuntu Xenial (16.04)
94+
---------------------
10595

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).
10798

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).
109102

110-
For Ubuntu 15.10 (Wily Werewolf) or newer, use the following command instead:
103+
.. note::
111104

112-
.. code-block:: bash
105+
These dependencies are not enough to compile the GUIs (Alethzero and Mix).
113106

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
115108
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 ..
117128
118129
Building
119130
--------
120131

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:
123133

124134
.. code-block:: bash
125135
126136
git clone --recursive https://github.com/ethereum/webthree-umbrella.git
127137
cd webthree-umbrella
128138
./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
132140
133141
If you opted to install Alethzero and Mix:
134142

0 commit comments

Comments
 (0)