-
Notifications
You must be signed in to change notification settings - Fork 795
Build rai_node samples
Marcel Edmund Franke edited this page Jan 2, 2018
·
49 revisions
To manage node, use RPC commands or CLI
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git cmake g++ curl wget
wget -O boost_1_63_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz/download
tar xzvf boost_1_63_0.tar.gz
cd boost_1_63_0
./bootstrap.sh
./b2 --prefix=../[boost] link=static install
cd ..
git clone --recursive https://github.com/clemahieu/raiblocks.git rai_build
cd rai_build
cmake -DBOOST_ROOT=../[boost] -G "Unix Makefiles"
make rai_node
cp rai_node ../rai_node && cp librai_lib.so .. && cd .. && ./rai_node --diagnostics
apt-get update && apt-get upgrade
apt-get install git cmake g++ libboost-all-dev curl wget
git clone --recursive https://github.com/clemahieu/raiblocks.git rai_build
cd rai_build
cmake -G "Unix Makefiles"
make rai_node
cp rai_node ../rai_node && cp librai_lib.so .. && cd .. && ./rai_node --diagnostics
sudo yum check-update
sudo yum install git cmake gcc gcc-c++ libstdc++-static curl wget
wget -O boost_1_63_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz/download
tar xzvf boost_1_63_0.tar.gz
cd boost_1_63_0
./bootstrap.sh
./b2 --prefix=../[boost] link=static install
cd ..
git clone --recursive https://github.com/clemahieu/raiblocks.git rai_build
cd rai_build
cmake -DBOOST_ROOT=../[boost] -G "Unix Makefiles"
make rai_node
cp rai_node ../rai_node && cp librai_lib.so .. && cd .. && ./rai_node --diagnostics
Sign up at digitalocean.com
Create Droplet
Add swap space -https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo apt-get update
sudo apt-get install g++
sudo apt-get install make
sudo apt install cmake
wget -O boost_1_63_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz/download
tar xzvf boost_1_63_0.tar.gz
cd boost_1_63_0
./bootstrap.sh
./b2 --prefix=../[boost] link=static install
cd ..
git clone https://github.com/clemahieu/raiblocks.git
cd raiblocks/
git submodule init
git submodule update
cmake -DBOOST_ROOT=../[boost] -G "Unix Makefiles"
make rai_node
./rai_node --daemon
# check block count
./rai_node --debug_block_count