From 1e6815877e45aaa5f2e4c75fc3561153f7ea5eba Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Mon, 1 Feb 2016 01:08:23 +0100 Subject: [PATCH] Building from source guide --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/README.md b/README.md index 6537c0cda..786283ac0 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,51 @@ [travis-url]: https://travis-ci.com/ethcore/parity [coveralls-image]: https://coveralls.io/repos/github/ethcore/parity/badge.svg?branch=master&t=Fk0OuQ [coveralls-url]: https://coveralls.io/r/ethcore/parity?branch=master + + +### Building from source + +##### Ubuntu + +```bash +# install rocksdb +add-apt-repository "deb http://ppa.launchpad.net/giskou/librocksdb/ubuntu trusty main" +apt-get update +apt-get install -y --force-yes librocksdb + +# install multirust +curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh -s -- --yes + +# install nightly and make it default +multirust update nightly && multirust default nightly + +# export rust LIBRARY_PATH +LIBRARY_PATH /usr/local/lib + +# download and build parity +git clone https://github.com/ethcore/parity +cd parity +cargo build --release +``` + +##### OSX + +```bash +# install rocksdb +brew update +brew install rocksdb + +# install multirust +curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh -s -- --yes + +# install nightly and make it default +multirust update nightly && multirust default nightly + +# export rust LIBRARY_PATH +LIBRARY_PATH /usr/local/lib + +# download and build parity +git clone https://github.com/ethcore/parity +cd parity +cargo build --release +```