forked from Achain-Dev/Achain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux_installation_guide
211 lines (175 loc) · 8.83 KB
/
linux_installation_guide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
linux_installation_guide:
1. For Ubuntu systems (currently just test for Ubuntu16.04)
1). install denpendancy packages
sudo apt-get update
sudo apt-get install cmake git libreadline-dev uuid-dev g++ libncurses5-dev zip libssl-dev openssl build-essential python-dev pkg-config autoconf autotools-dev libicu-dev libbz2-dev libboost-dev libboost-all-dev
export LC_ALL="en_US.UTF-8"
2). install ntp time and do configurations
sudo apt-get install ntp
sudo apt-get install ntpdate
sudo service ntp stop
sudo ntpdate -s time.nist.gov
sudo service ntp start
3). install the leveldb [1.18 or later]
download leveldb version 1.20 [https://github.com/google/leveldb/releases]
wget https://github.com/google/leveldb/archive/v1.20.tar.gz
tar -zxvf v1.20.tar.gz
cd leveldb-1.20/
make
sudo scp out-static/lib* /usr/local/lib/
sudo ldconfig
4). install the miniupnpc [ 1.8 ]
download http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.20131209.tar.gz
wget -O miniupnpc-1.8.20131209.tar.gz http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.20131209.tar.gz
tar -zxvf miniupnpc-1.8.20131209.tar.gz
cmake .
make
To install the library and headers on the system use :
> su make install
> exit
alternatively, to install into a specific location, use :
> INSTALLPREFIX=/usr/local make install
5). install fast compile library
git clone https://github.com/Achain-Dev/fast-compile.git
cd fast-compile
git checkout static_variant_string_tag
git submodule update --init --recursive
cmake .
make
sudo cp libfc.a /usr/local/lib/
sudo cp vendor/secp256k1-zkp/src/project_secp256k1-build/.libs/libsecp256k1.a /usr/local/lib
6). build BLOCKCHAIN code
# If you have cloned from https://github.com/Achain-Dev/Achain_linux.git
cd Achain_linux/Chain/
cmake . [ -DBOOST_ROOT=xxxx -DOPENSSL_ROOT_DIR=xxxx]
make
# else
git clone https://github.com/Achain-Dev/Achain_linux.git
cd Achain_linux/Chain/
cmake . [ -DBOOST_ROOT=xxxx -DOPENSSL_ROOT_DIR=xxxx]
make
NOTE : if you install boost and openssl into some other directory, you need change the CMakeList.txt,
whereabouts the option ${centos}
2. For Centos 7.2/ 7.3.1611 systems (currently just test for Centos 7.2 & 7.3.1611)
GCC 4.8.5
pre-installation:
install denpendancy packages
sudo yum -y install cmake git readline-devel uuid-devel g++ ncurses-devel zip openssl openssl-devel openssl-static build-essential pkgconfig python-dev autoconf autotools-devel libicu-devel libbz2-devel
export LC_ALL="en_US.UTF-8"
NOTE: Manually install Boost 1.59 and openssl 1.0.2k into default /usr/local directory
1). install boost 1.59
wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
tar -zxvf boost_1_59_0.tar.gz
cd boost_1_59_0
./bootstrap.sh
./b2
./b2 install
2). install openssl 1.0.2k
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2k.tar.gz
tar -zxvf openssl-1.0.2k.tar.gz
cd openssl-1.0.2k
./config
make
make install
3). install ntp time and do configurations
4). install the leveldb [1.18 or later]
download leveldb version 1.20 [https://github.com/google/leveldb/releases]
wget https://github.com/google/leveldb/archive/v1.20.tar.gz
tar -zxvf v1.20.tar.gz
cd leveldb-1.20/
make
sudo scp out-static/lib* /usr/local/lib/
sudo ldconfig
5). install the miniupnpc [ 1.8 ]
download http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.20131209.tar.gz
wget -O miniupnpc-1.8.20131209.tar.gz http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.20131209.tar.gz
tar -zxvf miniupnpc-1.8.20131209.tar.gz
cmake .
make
To install the library and headers on the system use :
> su make install
> exit
alternatively, to install into a specific location, use :
> INSTALLPREFIX=/usr/local make install
6). install fast compile library
git clone https://github.com/Achain-Dev/fast-compile.git
cd fast-compile
git checkout static_variant_string_tag
git submodule update --init --recursive
cmake .
make
sudo cp libfc.a /usr/local/lib/
sudo cp vendor/secp256k1-zkp/src/project_secp256k1-build/.libs/libsecp256k1.a /usr/local/lib
7). build BLOCKCHAIN code
# If you have cloned from https://github.com/Achain-Dev/Achain_linux.git
cd Achain_linux/Chain/
cmake . [ -DBOOST_ROOT=xxxx -DOPENSSL_ROOT_DIR=xxxx]
make
# else
git clone https://github.com/Achain-Dev/Achain_linux.git
cd Achain_linux/Chain/
cmake . [ -DBOOST_ROOT=xxxx -DOPENSSL_ROOT_DIR=xxxx]
make
NOTE : if you install boost and openssl into some other directory, you need change the CMakeList.txt,
whereabouts the option ${centos}
3. For Fedora 27/25 systems
pre-installation:
install denpendancy packages
dnf install automake
dnf install cmake git libtool readline-devel uuid-devel gcc-c++ ncurses-devel zip pkgconfig python-devel autoconf libicu-devel bzip2-devel
dnf install compat-openssl10
NOTE: Manually install Boost 1.59 and openssl 1.0.2k into default /usr/local directory.
NOTE: NOT USE OPENSSL 1.1 VERSION and BOOST version higher 1.60
1). install boost 1.59
wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
tar -zxvf boost_1_59_0.tar.gz
cd boost_1_59_0
./bootstrap.sh
./b2
./b2 install
2). install openssl 1.0.2k
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2k.tar.gz
tar -zxvf openssl-1.0.2k.tar.gz
cd openssl-1.0.2k
./config --prefix=/usr/local
make
make install
3). install ntp time and do configurations
4). install the leveldb [1.18 or later]
download leveldb version 1.20 [https://github.com/google/leveldb/releases]
wget https://github.com/google/leveldb/archive/v1.20.tar.gz
tar -zxvf v1.20.tar.gz
cd leveldb-1.20/
make
sudo scp out-static/lib* /usr/local/lib/
sudo ldconfig
5). install the miniupnpc [ 1.8 ]
download http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.20131209.tar.gz
wget -O miniupnpc-1.8.20131209.tar.gz http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.20131209.tar.gz
tar -zxvf miniupnpc-1.8.20131209.tar.gz
cmake .
make
To install the library and headers on the system use :
> su make install
> exit
alternatively, to install into a specific location, use :
> INSTALLPREFIX=/usr/local make install
6). install fast compile library
git clone https://github.com/Achain-Dev/fast-compile.git
cd fast-compile
git checkout static_variant_string_tag
git submodule update --init --recursive
cmake . -DOPENSSL_ROOT_DIR=(openssl root directory)
make
sudo cp libfc.a /usr/local/lib/
sudo cp vendor/secp256k1-zkp/src/project_secp256k1-build/.libs/libsecp256k1.a /usr/local/lib
7). build BLOCKCHAIN code
# If you have cloned from https://github.com/Achain-Dev/Achain_linux.git
cd Achain_linux/Chain/
cmake . [ -DBOOST_ROOT=xxxx -DOPENSSL_ROOT_DIR=xxxx]
make
# else
git clone https://github.com/Achain-Dev/Achain_linux.git
cd Achain_linux/Chain/
cmake . [ -DBOOST_ROOT=xxxx -DOPENSSL_ROOT_DIR=xxxx]
make