Block chain: Square Ethernet installation base of Geth

1. Install cmake

Intelligent contract need only be compiled versions cmake3.x

# Download package
 wget HTTPS: // cmake.org/files/v3.3/cmake-3.3.2.tar.gz 
# extracting
 the tar zxvf cmake- 3.3 . 2 . The tar .gz 
CD CMake - 3.3 . 2 

# installation 
. / the configure
 the make 
the make  install 

# editing environment variable configuration file 
vim / etc / profile 

# at the end add 
Export the PATH = / usr / cmake / cmake-3.3.2 / bin: $ the PATH 

# reload the system configuration file 
Source / etc / profile 

# Check and confirm the version information cmake 
cmake --version

2. Install golang

Here it is best to install the latest version, otherwise prone to error

# Download package
 wget HTTPS: // dl.google.com/go/go1.13.linux-amd64.tar.gz 
# unpack
 tar zxvf go1. 13 . Linux-AMD64. Tar .gz 

# editing environment variable configuration file 
vim / etc / profile 

# in the end, add 
Export GOROOT = / usr / golang / Go 
Export the PATH = / usr / golang / Go / bin: $ the PATH 

# reload the system configuration file 
Source / etc / profile 

# View version information 
go version

3. Download git

# Mounted reliance
 yum -Y the install curl-devel expat-devel the gettext-devel OpenSSL-devel zlib devel- GCC  Perl -ExtUtils- MakeMaker 

# pull Git Source Package 
wget HTTPS: // github.com/git/git/archive/v2 .23.0.tar.gz 

# extracting 
the tar -zxvf V2. 23.0 . the tar .gz 
CD Git - 2.23 . 0 / 

# mounting 
the make prefix = / usr / Git / GIT- 2.23 . 0 All
 the make prefix = / usr / Git / Git - 2.23 . 0  install 

# editing environment variable 
vim/ etc / Profile 

# at the end of the file plus configuration 
Export the PATH = $ {the PATH}: / usr / git / GIT- 2.23 . 0 / bin 

# the script to take effect 
Source / etc / Profile 

# test environment git 
git --version

4. Download geth

# Download Source 
git clone HTTPS: // github.com/ethereum/go-ethereum.git   

# enter the directory 
cd Go -ethereum / 

# install 
the make All 

# editing environment variable 
vim / etc / Profile 

# add at the end of the configuration file 
export PATH the PATH $ {} =: / usr / geth / Go-Ethereum / Build / bin 

# the script to take effect 
Source / etc / Profile 

# view version
geth version

There is a problem, if the installation error, may be /build/env.sh cause of this is because of the different liunx win with line breaks

# Editor 
vim / usr / Go-Ethereum / Build / env . SH # Set wrap, exit : the SET FF = UNIX : WQ

At this point the configuration environment

Guess you like

Origin www.cnblogs.com/fdzang/p/12149844.html