Bcos Installation Practice Ubuntu version

Source: Internet
Author: User
Tags chmod openssl file permissions git clone

system version: Ubuntu16.04.4

① Install Nodejs (after installation version Nodejs version is greater than 6), Babel-node environment

Programme I: Reference website: http://blog.csdn.net/weibo392/article/details/77368550 Scenario Two: update Ubuntu software source

sudo apt-get update
sudo apt-get install-y python-software-properties software-properties-common
sudo Add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
Install Nodejs
sudo apt-get install nodejs
sudo apt install nodejs-legacy
sudo apt install npm
Update NPM's package mirroring source for quick Download
sudo npm config set registry https://registry.npm.taobao.org
sudo npm config list
Global Install N Manager (for managing Nodejs versions)
sudo npm install n-g
Install the latest Nodejs (stable version)
sudo n stable
sudo node-v
sudo npm install-g babel-cli babel-preset-es2017
echo ' {presets ': [' es2017 ']} ' > ~/.BABELRC

QA q:apt-get Update could not find the file

W:the repository ' http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial release ' does not have a release file. N:data from such a repository can ' t being authenticated and is therefore potentially to use. N:see apt-secure (8) Manpage for repository creation and User configuration details. e:failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found E:some index files failed to download. They have been ignored, or old ones used. A: Modifying node-related files:/etc/apt/sources.list.d/chris-lea-ubuntu-node_js-xenial.list deb http://ppa.launchpad.net/ Chris-lea/node.js/ubuntu Trusty main DEB-SRC http://ppa.launchpad.net/chris-lea/node.js/ubuntu Trusty main

② Install smart contract solidity compiler mode one: Direct download SOLC binary execution Program

wget https://github.com/ethereum/solidity/releases/download/v0.4.13/solc-static-linux
sudo cp Solc-static-linux  /usr/bin/solc
sudo chmod +x/usr/bin/solc
③ Installation Console

sudo npm install-g ethereum-console

Get Source code

git clone https://github.com/bcosorg/bcos.git
Prepare before compiling① installation CMake

Website Download cmake-3.6.3.tar.gz (https://cmake.org/download/)

1. Extract files Tar-xvf cmake-3.6.3.tar.gz, and modify file permissions Chmod-r 777 cmake-3.6.3
2. Detects if GCC and g++ are installed, and if not, install Gcc-g++:sudo Apt-get Install Build-essential (or directly execute these two commands sudo apt-get install gcc,sudo apt-get install g++)
3. Enter cmake-3.6.3 enter command CD cmake-3.6.3
4. Execute sudo./bootstrap 
5. Execute sudo make 
6. Execute sudo make install 
7. Execute cmake–version, return cmake version information , the installation is successful
② Installation-dependent development libraries

sudo yum install-y OpenSSL openssl-devel chmod +x source path bcos/scripts/install_deps.sh
source path Bcos
deps.sh
compiling an executable program

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.