forked from zerovm/zrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
59 lines (45 loc) · 1.54 KB
/
README
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
ABOUT:
ZRT - ZeroVM Run-Time environment for user executables running on virtual hardware represented by ZeroVM.
ZRT acts as an operating system for user executable and is implemented as libzrt.a static library
NEXE is a user executable that was produced by nacl_gcc or nacl_g++ (part of Native Client SDK)
INSTALL & RUN
1. Install ZeroVM, Consult http://github.com/zerovm/zerovm/blob/master/README
2. Install NaCl SDK. Consult https://developers.google.com/native-client/sdk/download for exact procedure.
Below should work okay in most cases.
cd ~
wget http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_sdk.zip
unzip nacl_sdk.zip
cd nacl_sdk
./naclsdk list
./naclsdk update --force pepper_21
3. Install zrt
git clone https://github.com/zerovm/zrt.git
4.Set environmant variables on ~/.bashrc
NACL_SDK_ROOT NaCl pepper path
ZEROVM_ROOT root of ZeroVM
ZRT_ROOT root of ZRT
ZPYTHON_ROOT root of cpython ported to ZRT
For example:
export NACL_SDK_ROOT=${HOME}/nacl_sdk/pepper_21
export ZEROVM_ROOT=${HOME}/zerovm
export ZRT_ROOT=${HOME}/zrt
export ZPYTHON_ROOT=${HOME}/zpython
5. Fix the validator config and binpatch
ln -s ${NACL_SDK_ROOT}/tools/ncval_x86_64 /usr/local/bin/ncval
sed -i 's#BINPATCH=binpatch#BINPATCH=/bin/true#' ${ZRT_ROOT}/Makefile.env
6. run
cd ${ZRT_ROOT}
make
make all_samples
make zrt_tests
DOCS
zrt/README
zrt/zvm/README
zrt/lib/README
zrt/lib/lua-5.2.1/README
zrt/lib/sqlite3/README
zrt/lib/networking/README
zrt/lib/mapreduce/README
zrt/tests/README
zrt/tests/lua_test_suite/README
zrt/samples/README