Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
96c50d2d
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
96c50d2d
编写于
2月 15, 2018
作者:
B
Bill Hamilton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added amazon linux manual dependency install instructions to readme.md
上级
4d159ac0
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
99 addition
and
12 deletion
+99
-12
README.md
README.md
+87
-4
contracts/libc++/upstream
contracts/libc++/upstream
+1
-1
contracts/musl/upstream
contracts/musl/upstream
+1
-1
eosio_build.sh
eosio_build.sh
+6
-2
scripts/eosio_build_amazon.sh
scripts/eosio_build_amazon.sh
+4
-4
未找到文件。
README.md
浏览文件 @
96c50d2d
...
...
@@ -688,7 +688,7 @@ git clone https://github.com/cryptonomex/secp256k1-zkp.git
cd
secp256k1-zkp
./autogen.sh
./configure
make
make
-j
$(
sysctl
-in
machdep.cpu.core_count
)
sudo
make
install
```
...
...
@@ -699,7 +699,7 @@ cd ~
git clone https://github.com/WebAssembly/binaryen.git
cd
~/binaryen
git checkout tags/1.37.14
cmake
.
&&
make
cmake
.
&&
make
-j
$(
sysctl
-in
machdep.cpu.core_count
)
```
Add
`BINARYEN_ROOT`
to your .bash_profile:
...
...
@@ -721,7 +721,8 @@ cd ..
mkdir
build
cd
build
cmake
-G
"Unix Makefiles"
-DCMAKE_INSTALL_PREFIX
=
..
-DLLVM_TARGETS_TO_BUILD
=
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD
=
WebAssembly
-DCMAKE_BUILD_TYPE
=
Release ../
make
-j
$(
nproc
)
install
make
-j
$(
sysctl
-in
machdep.cpu.core_count
)
make
install
```
Add
`WASM_LLVM_CONFIG`
and
`LLVM_DIR`
to your
`.bash_profile`
:
...
...
@@ -767,7 +768,7 @@ git clone https://github.com/cryptonomex/secp256k1-zkp.git
cd
secp256k1-zkp
./autogen.sh
./configure
make
make
-j
$(
nproc
)
sudo
make
install
```
...
...
@@ -806,6 +807,88 @@ make -j$( nproc ) install
Add
`WASM_LLVM_CONFIG`
and
`LLVM_DIR`
to your
`.bash_profile`
:
```
bash
echo
"export WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config"
>>
~/.bash_profile
echo
"export LLVM_DIR=~/wasm-compiler/lib/cmake/llvm"
>>
~/.bash_profile
source
~/.bash_profile
```
Your environment is set up. Now you can
<a
href=
"#runanode"
>
build EOS and run a node
</a>
.
<a
name=
"fedora"
></a>
### Clean install Amazon 2017.09 and higher
Install the development toolkit:
```
bash
sudo
yum update
sudo
yum
install
git gcc72.x86_64 gcc72-c++.x86_64 autoconf automake libtool make bzip2
\
bzip2-devel.x86_64 openssl-devel.x86_64 gmp.x86_64 gmp-devel.x86_64
\
libstdc++72.x86_64 python27-devel.x86_64 libedit-devel.x86_64
\
ncurses-devel.x86_64 swig.x86_64 gettext-devel.x86_64
```
Install Boost 1.66:
```
bash
cd
~
curl
-L
https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2
>
boost_1.66.0.tar.bz2
tar
xf boost_1.66.0.tar.bz2
echo
"export BOOST_ROOT=
$HOME
/boost_1_66_0"
>>
~/.bash_profile
source
~/.bash_profile
cd
boost_1_66_0/
./bootstrap.sh
"--prefix=
$BOOST_ROOT
"
./b2
install
```
Install
[
secp256k1-zkp (Cryptonomex branch)
](
https://github.com/cryptonomex/secp256k1-zkp.git
)
:
```
bash
cd
~
git clone https://github.com/cryptonomex/secp256k1-zkp.git
cd
secp256k1-zkp
./autogen.sh
./configure
make
-j
$(
nproc
)
sudo
make
install
```
To use the WASM compiler, EOS has an external dependency on
[
binaryen
](
https://github.com/WebAssembly/binaryen.git
)
:
```
bash
cd
~
git clone https://github.com/WebAssembly/binaryen.git
cd
~/binaryen
git checkout tags/1.37.14
cmake
.
&&
make
```
Add
`BINARYEN_ROOT`
to your .bash_profile:
```
bash
echo
"export BINARYEN_ROOT=~/binaryen"
>>
~/.bash_profile
source
~/.bash_profile
```
By default LLVM and clang do not include the WASM build target, so you will have to build it yourself:
```
bash
mkdir
~/wasm-compiler
cd
~/wasm-compiler
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/llvm.git
cd
llvm/tools
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/clang.git
cd
..
mkdir
build
cd
build
cmake
-G
"Unix Makefiles"
-DCMAKE_INSTALL_PREFIX
=
..
-DLLVM_TARGETS_TO_BUILD
=
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD
=
WebAssembly
-DCMAKE_BUILD_TYPE
=
Release ../
make
-j
$(
nproc
)
make
install
```
Add
`WASM_LLVM_CONFIG`
and
`LLVM_DIR`
to your
`.bash_profile`
:
```
bash
echo
"export WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config"
>>
~/.bash_profile
echo
"export LLVM_DIR=~/wasm-compiler/lib/cmake/llvm"
>>
~/.bash_profile
...
...
upstream
@
35a26f82
比较
959b01fb
...
35a26f82
Subproject commit
959b01fb8b617851e260bd2218ac8ba74269fec9
Subproject commit
35a26f82dae8b292290815ae6ede8f849ce7806f
upstream
@
29098b1f
比较
ee49ba89
...
29098b1f
Subproject commit
ee49ba896db1de3c3e4f4285eb4e285b641a6cd
9
Subproject commit
29098b1f3044e7a9e2c1152028dba08885ea04f
9
eosio_build.sh
浏览文件 @
96c50d2d
...
...
@@ -115,8 +115,12 @@
mkdir
-p
${
BUILD_DIR
}
cd
${
BUILD_DIR
}
if
[
-z
$CMAKE
]
;
then
CMAKE
=
$(
which cmake
)
fi
# Build EOS
cmake
-DCMAKE_BUILD_TYPE
=
${
CMAKE_BUILD_TYPE
}
-DCMAKE_CXX_COMPILER
=
${
CXX_COMPILER
}
\
$CMAKE
-DCMAKE_BUILD_TYPE
=
${
CMAKE_BUILD_TYPE
}
-DCMAKE_CXX_COMPILER
=
${
CXX_COMPILER
}
\
-DCMAKE_C_COMPILER
=
${
C_COMPILER
}
-DWASM_LLVM_CONFIG
=
${
WASM_LLVM_CONFIG
}
\
-DBINARYEN_BIN
=
${
BINARYEN_BIN
}
-DOPENSSL_ROOT_DIR
=
${
OPENSSL_ROOT_DIR
}
\
-DOPENSSL_LIBRARIES
=
${
OPENSSL_LIBRARIES
}
..
...
...
@@ -125,7 +129,7 @@
exit
-1
fi
make
-j
$
(
nproc
)
VERBOSE
=
1
make
-j
$
{
CPU_CORE
}
VERBOSE
=
0
if
[
$?
-ne
0
]
;
then
printf
"
\n\t
>>>>>>>>>>>>>>>>>>>> MAKE building EOSIO has exited with the above error.
\n\n
"
...
...
scripts/eosio_build_amazon.sh
浏览文件 @
96c50d2d
...
...
@@ -120,7 +120,7 @@
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
make
make
-j
${
CPU_CORE
}
if
[
$?
-ne
0
]
;
then
printf
"
\t
Error compiling CMAKE.
\n
"
printf
"
\t
Exiting now.
\n\n
"
...
...
@@ -160,7 +160,7 @@
exit
;
fi
./configure
make
make
-j
${
CPU_CORE
}
if
[
$?
-ne
0
]
;
then
printf
"
\t
Error compiling secp256k1-zkp.
\n
"
printf
"
\t
Exiting now.
\n\n
"
...
...
@@ -180,7 +180,7 @@
git clone https://github.com/WebAssembly/binaryen
cd
binaryen
git checkout tags/1.37.14
$CMAKE
.
&&
make
$CMAKE
.
&&
make
-j
${
CPU_CORE
}
if
[
$?
-ne
0
]
;
then
printf
"
\t
Error compiling binaryen.
\n
"
printf
"
\t
Exiting now.
\n\n
"
...
...
@@ -214,7 +214,7 @@
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
make
-j
$
(
nproc
)
make
-j
$
{
CPU_CORE
}
if
[
$?
-ne
0
]
;
then
printf
"
\t
Error compiling LLVM and clang with EXPERIMENTAL WASM support.
\n
"
printf
"
\t
Exiting now.
\n\n
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录