Tezos compilation guide for Ubuntu 18

Some of the code is repeated/unnecessary, feel free to provide a more concise guide

for Debian, see https://github.com/tezoscommunity/FAQ/wiki/Build-a-Betanet-node-on-Debian-9

You can skip all this and try run my precompiled libraries for Intel processors

https://bismuth.space/?dir=tezos

For Ubuntu 16, you need:

upgrade to Ubuntu 18

Compile

sudo apt install bubblewrap
git clone https://gitlab.com/tezos/tezos.git
cd tezos
git checkout betanet
sudo apt install curl
sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
wget https://github.com/ocaml/ocaml/archive/4.06.1.zip
unzip 4.06.1.zip
cd ocaml-4.06.1
./configure -bindir /usr/bin -libdir /usr/lib/ocaml -mandir /usr/man/manl
make world
umask 022
sudo make install
cd ..
opam init
opam pin add jbuilder 1.0+beta20
eval $(opam env)
opam install -y astring base biniou cmdliner cohttp cohttp-lwt cohttp-lwt-unix conduit conduit-lwt conduit-lwt-unix cppo_ocamlbuild cpuid cstruct cstruct-lwt ezjsonm fieldslib fmt hex ipaddr irmin js_of_ocaml js_of_ocaml-compiler jsonm logs lwt mtime nocrypto ocaml-migrate-parsetree ocb-stubblr ocp-ocamlres ocplib-endian ocplib-json-typed ppx_ast ppx_core ppx_deriving ppx_driver ppx_fields_conv ppx_metaquot ppx_optcomp ppx_sexp_conv ppx_tools_versioned ppx_type_conv stdio topkg uri uutf yojson base64 cppo easy-format magic-mime ocaml-compiler-libs ppx_derivers ppx_traverse_builtins re result sexplib stringext
make build-deps
make

Create an identity, start RPC server, add address, activate:

./tezos-node identity generate 26
./tezos-node run --rpc-addr 127.0.0.1
./tezos-client add address fundraiser <tz1...>
./tezos-client activate fundraiser account fundraiser with <activation_key>

To import your fundraiser private key:

./tezos-client import fundraiser secret key <my_account>

Start baking (background service &):

./tezos-alpha-baker &
./tezos-alpha-baker &

Leave a Reply

Your email address will not be published. Required fields are marked *