Configuring and compiling Cpp-ethereum clients under Ubuntu

Source: Internet
Author: User

Ethereum, a Chinese translator, is an open-source project in the public blockchain. Because Ethereum is based on a peer-network, there is no central node, so users can only install Ethereum clients to connect to the Ethereum public network or run Ethereum under their own testnet.

Ethereum clients are available in many languages.

The C + + version is selected in this article. The configuration process is as follows:

Reference: Http://ethdocs.org/en/latest/ethereum-clients/cpp-ethereum/index.html#installing-and-building

Environment: Ubuntu15.10 x64

1. Installing the "ETH" command-line tool

sudo add-apt-repository ppa:ethereum/ethereum-qtsudo add-apt-repository ppa:ethereum/ Ethereum sudo apt-get updatesudoinstallcpp-ethereum

2. Install the mix IDE (optional)

sudo Install mix-idemix-ide

3. Get the source code

git clone--recursive https://github.com/ethereum/webthree-umbrella.git

This project may cause module download error due to network reasons. A more stupid way is to remove the download Webthree-umbrella directory and rerun the git clone command above

4. Configuring the compilation Environment

sudo apt-get-y updatesudoinstall language-pack-en-basesudo dpkg-reconfigure localessudoinstall Software-properties-common
 sudo  add-apt-repository  " deb http://llvm.org/apt/wily/llvm-toolchain-wily-3.7 main   wget -o-http:// llvm.org/apt/ Llvm-snapshot.gpg.key | sudo apt-key add- sudo  apt-get-y update  sudo  apt-get-y install  llvm-< Span style= "color: #800080;" >3.7 -dev 
sudo add-apt-repository-y ppa:ethereum/ethereum-qtsudo add-apt-repository-y PPA: ethereum/ethereumsudo add-apt-repository-y ppa:ethereum/ethereum-devsudo Apt-get-yupdate/ /// Official Tutorial This step will update the system, remove this command
sudoApt-get-yInstallbuild-essential git cmake libboost-all-dev libgmp-Dev Libleveldb-dev Libminiupnpc-dev Libreadline-dev libncurses5-Dev Libcurl4-openssl-dev Libcryptopp-dev Libmicrohttpd-dev libjsoncpp-Dev Libargtable2-dev Libedit-dev Mesa-common-dev OCL-ICD-LIBOPENCL1 opencl-Headers Libgoogle-perftools-dev Qtbase5-dev Qt5-default qtdeclarative5-Dev Libqt5webkit5-dev Libqt5webengine5-dev Ocl-icd-dev Libv8-dev libz-DevsudoApt-get-yInstalllibjsonrpccpp-DevsudoApt-get-yInstallQml-module-qtquick-controls Qml-module-qtwebengine

5. Compiling

mkdir BUILDCD Buildcmake.  Make (OR)  Make // Execute makefile with multiple cores in parallel

6. Testing

Running the ETH command at the terminal will start the Cpp-ethereum client

[Email protected]:~/code/ethereum$ ETH

(Forget, use the map of the download block instead of the bar-_-)

Configuring and compiling Cpp-ethereum clients under Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.