Skip to content

Serpent LLL only build

Gav Wood edited this page Jul 1, 2014 · 3 revisions

Below are the build instructions for the latest versions of Ubuntu. Older versions or Ubuntu-based distributions like Linux Mint should work very similarly, but they may need updated buildtools.

Note: The best supported platform as of June 2014 is Ubuntu 14.04. Documentation for older versions may be patchy and you are encouraged to update this guide with improvements according to your experiences.

##Dependencies from repositories

Before you begin, update your repositories:

sudo apt-get update && sudo apt-get upgrade

Install the package dependencies. This is slightly different between Ubuntu versions.

Trusty 14.04

sudo apt-get install build-essential g++-4.8 git cmake libboost-all-dev

Wheezy 13.04 and Saucy 13.10

sudo apt-get install build-essential g++-4.8 git cmake libboost1.53-all-dev

Precise 12.04

incomplete - need to update to correct g++ and boost versions. anyone?

sudo apt-get install build-essential g++-4.7 git cmake libboost-all-dev

Sorting the source

First grab/unpack the sources. If you want to build the latest version, clone the repository:

git clone https://github.com/ethereum/cpp-ethereum
cd cpp-ethereum
git checkout develop

If you have a prepackaged source distribution from code.ethereum.org, then simply unpack:

tar xjf cpp-ethereum-<version>.tar.bz2
cd cpp-ethereum-<version>

Building Serpent/LLL tools

Create and configure the build environment and the build inside the cpp-ethereum directory:

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DLANGUAGES=1 && make

You'll now have sc and lllc in the corresponding directories.

Clone this wiki locally