Forked from dalanmiller/download_rethinkdb_for_raspberry_pi_2.sh
Last active
September 16, 2016 10:06
-
-
Save mikokch/e351ec6717c8fa03667c to your computer and use it in GitHub Desktop.
A quick script to download and compile RethinkDB on Raspberry Pi 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment