#!/bin/bash # Change Raspberry SWAP size # https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/ # # sudo nano /etc/dphys-swapfile # # The default value in Raspbian is: # CONF_SWAPSIZE=100 # # We will need to change this to: # CONF_SWAPSIZE=1024 # # Then you will need to stop and start the service that manages the swapfile own Rasbian: # sudo /etc/init.d/dphys-swapfile stop # sudo /etc/init.d/dphys-swapfile start #sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget libssl-dev #At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com wget http://download.rethinkdb.com/dist/rethinkdb-latest.tgz tar xf rethinkdb-latest.tgz rm rethinkdb-latest.tgz cd rethinkdb-* ./configure --with-system-malloc --allow-fetch --prefix=/usr --sysconfdir=/etc --localstatedir=/var #Export the proper C++ flags for Raspberry Pi 1/2 export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" #| time make -j3 ALLOW_WARNINGS=1 time make -j3 ALLOW_WARNINGS=1 #sudo make install