Forked from dalanmiller/download_rethinkdb_for_raspberry_pi_2.sh
Last active
October 29, 2015 04:39
-
-
Save zaherg/da40615708d16e8ae804 to your computer and use it in GitHub Desktop.
A quick script to download and compile RethinkDB on Raspberry Pi 2
This file contains 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
sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget | |
#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 | |
#Export the proper C++ flags for Raspberry Pi 1/2 | |
export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1 | |
sudo make install |
This file contains 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/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. | |
# | |
# By default this script does nothing. | |
# Print the IP address | |
_IP=$(hostname -I) || true | |
if [ "$_IP" ]; then | |
printf "My IP address is %s\n" "$_IP" | |
fi | |
rethinkdb --bind all --server-name rbpi_rethinkdb -d /home/pi --daemon | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment