Back

[**] ubuntu上安装ripple

发布时间: 2018-04-10 13:53:00

参考:   https://ripple.com/build/build-run-rippled-ubuntu/

按照这些命令一条一条来

前提: ubuntu 版本是 16,  我的是 14, 在 google. cloud上.所以卡主了. ....

需要 安装  gcc 5, (ubuntu 14上)  , 参考:  https://gist.github.com/beci/2a2091f282042ed20cda

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

然后继续安装:  (下面步骤适用于 ubuntu 16) 

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get -y install git scons pkg-config protobuf-compiler libprotobuf-dev libssl-dev wget 
$ wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz
$ tar xvzf boost_1_64_0.tar.gz 
$ cd boost_1_64_0
$ ./bootstrap.sh
$ ./b2 -j 8   ( 这个数字8是随便填写的 , 一半来说同CPU核心数 ) 
等待大约15分钟后,编译就结束了 

然后, 设置这个变量:  
$ export BOOST_ROOT=/home/ubuntu/boost_1_64_0
并且把该内容保存到 ~/.bashrc中. 

git clone https://github.com/ripple/rippled.git
cd rippled
git checkout master

scons     # 这里会有漫长的编译过程 . 30分钟以上吧. 多少我忘记了 . 

接下来, 是配置过程.

mkdir ~/.config/ripple  

cp doc/rippled-example.cfg ~/.config/ripple/rippled.cfg

Back