-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_eos.sh
48 lines (42 loc) · 1.55 KB
/
install_eos.sh
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
#!/bin/bash
echo " ------------------------------------------"
echo " ----------- apt-get update ---------------"
echo " ------------------------------------------"
sudo apt-get update -y
echo " ------------------------------------------"
echo " ----------- EOS dependencies -------------"
echo " ------------------------------------------"
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-get install clang-4.0 lldb-4.0 libclang-4.0-dev cmake make \
libbz2-dev libssl-dev libgmp3-dev \
autotools-dev build-essential \
libicu-dev python-dev libz-dev \
autoconf libtool python3-dev git libmongoc-1.0 -y
echo " ------------------------------------------"
echo " -------------- Web Assembly --------------"
echo " ------------------------------------------"
cd
sudo apt-get install git -y
git clone https://github.com/WebAssembly/binaryen
cd binaryen
cmake .
make
echo " --------------------------------------------"
echo " ------------------ eosjs -------------------"
echo " --------------------------------------------"
# https://github.com/EOSIO/eosjs
cd /var/www
git clone https://github.com/EOSIO/eosjs.git
cd eosjs
npm install
npm run build
# builds: ./dist/eos.js
echo " --------------------------------------------"
echo " ------------------ eos ---------------------"
echo " --------------------------------------------"
# https://github.com/EOSIO/eos
# local testnet
cd /var/www
git clone https://github.com/eosio/eos --recursive
cd eos
./eosio_build.sh