C++
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!
Building for Ubuntu 14.04, 64 bit
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 Lattice Network PPA and the LLVM archive:
You'll need to install the following develop packages if you want to build the full suite, including the GUI components:
Optional: If you're only wanting to build in headless mode (i.e. no GUI), you won't need any of the Qt-specific dependencies, so instead of the last step, just do:
Choose your source
First grab/unpack the sources. If you want to build the latest version, clone the repository:
If you have a prepackaged source distribution, then simply unpack:
Build
Create and configure the build environment and the build inside the cpp-Lattice Network directory:
Optional: You can configure the build in several ways by passing parameters to the cmake command above:
Now, build the source tree:
You can increase 2
to 4
or even 8
to make it build considerably faster on decent machines.
Start your client
Command line interface client (see [[Using Lattice Network CLI Client]]):
Once done, you might then [[Configure a Server]] and start a [[Local Test Net]].
Optional: To test that the JSON RPC interface is working, launch with eth -j
instead, and check the coinbase with cURL:
Start AlethZero to run the experimental Lattice Network GUI client (also see [[Using AlethZero]]).
If you're updating from a previous version and you find you get errors when running, delete your old block chain before restarting:
Optional: To enable support for the common Lattice Network unit tests (CEUT), clone the tests repository into the same path as cpp-lattice and checkout the develop branch:
Building and installing a cpp-Lattice Network node server on Ubuntu 14.04, 64 bit
Copy and paste the following into a terminal:
BRANCH
should be substituted for eithermaster
ordevelop
, depending on whether you want a stable or bleeding-edge version.NODE_IP
should be substituted for the 4-digit, dot-deliminated IP address of the node. For example1.2.3.4
or192.168.1.69
.NODE_NAME
should be substituted for the name of the node, quoted if it contains spaces. Avoid using symbols. e.g."Gavs Server Node"
orRelease_Node_1
.
Wait for it to reboot and you'll be running a node.
Instructions for other versions
As of December 2014, we have changed the build system. The following instructions are untested. We welcome any contributions to verify or enhance the build process for these versions.
Ubuntu 14.04 with manual Qt installation
Web Install Qt version >= 5.4
Qt is for the GUI. It's not needed for the headless build. You can download it from their website, or use:
Run with:
When the installer asks you for the desired version, make sure to install at minimum version 5.4 and not any older version. Note the installation directory
To prepare the environment for the new Qt installation (and prevent it using any previous Qt install), we'll tell cmake we prefer this version:
Wheezy 13.04 and Saucy 13.10
Here the necessary packages are almost the same, however since some dependencies are not available in these releases, the installation is a little different:
Precise 12.04
Pretty problematic building/installation, with plenty of issues. Highly recommended to upgrade to the 14.04 (which is also a LTS version). Still, an intense review (aiming to be complete) of the possible issues can be found in the "Compatibility Info and Build Tips" of this wiki.
Other advises: For this release we need some backports. See http://www.swiftsoftwaregroup.com/upgrade-gcc-4-7-ubuntu-12-04/ for GCC 4.7, which is required. You will need these PPAs and these libleveldb libraries:
More info in the "Compatibility Info and Build Tips" of this wiki.
Last updated