From 7cdb343184dbffe7b835a78aade3978ebc991853 Mon Sep 17 00:00:00 2001 From: Mike C Date: Wed, 20 Sep 2017 16:56:20 -0600 Subject: [PATCH 1/2] Update Raspberry Pi build instructions We don't have to compile boost by ourselves anymore! --- README.md | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 2087a5639..c3e1da582 100644 --- a/README.md +++ b/README.md @@ -209,13 +209,13 @@ invokes cmake commands as needed. HAVE_DOT=YES doxygen Doxyfile -#### On the Raspberry Pi 2 +#### On the Raspberry Pi -Tested on a Raspberry Pi 2 with a clean install of minimal Debian Jessie from https://www.raspberrypi.org/downloads/raspbian/ +Tested on a Raspberry Pi Zero with a clean install of minimal Debian Stretch (2017-09-07 or later) from https://www.raspberrypi.org/downloads/raspbian/ * `apt-get update && apt-get upgrade` to install all of the latest software -* Install the dependencies for Monero except libunwind and libboost-all-dev +* Install the dependencies for Monero from the 'Debian' column in the table above. * Increase the system swap size: ``` @@ -224,27 +224,17 @@ Tested on a Raspberry Pi 2 with a clean install of minimal Debian Jessie from ht CONF_SWAPSIZE=1024 sudo /etc/init.d/dphys-swapfile start ``` -* Install the latest version of boost (this may first require invoking `apt-get remove --purge libboost*` to remove a previous version if you're not using a clean install): +* Clone monero and checkout most recent release version: ``` - cd - wget https://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.bz2 - tar xvfo boost_1_64_0.tar.bz2 - cd boost_1_64_0 - ./bootstrap.sh - sudo ./b2 + git clone https://github.com/monero-project/monero.git + cd monero + git checkout tags/v0.11.0.0 ``` -* Wait ~8 hours +* Build: ``` - sudo ./bjam install -``` -* Wait ~4 hours - -* Change to the root of the source code directory and build: -``` - cd monero make release ``` -* Wait ~4 hours +* Wait 4-6 hours * The resulting executables can be found in `build/release/bin` From e914153ff501fbd5c0af46a8f09bb880c1f30092 Mon Sep 17 00:00:00 2001 From: Mike C Date: Tue, 26 Sep 2017 13:00:21 -0600 Subject: [PATCH 2/2] Include additional instructions for Jessie Raspbian Jessie users must compile boost themselves. --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c3e1da582..753b5d0c3 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,7 @@ invokes cmake commands as needed. #### On the Raspberry Pi -Tested on a Raspberry Pi Zero with a clean install of minimal Debian Stretch (2017-09-07 or later) from https://www.raspberrypi.org/downloads/raspbian/ +Tested on a Raspberry Pi Zero with a clean install of minimal Raspbian Stretch (2017-09-07 or later) from https://www.raspberrypi.org/downloads/raspbian/. If you are using Raspian Jessie, [please see note in the following section](#note-for-raspbian-jessie-users). * `apt-get update && apt-get upgrade` to install all of the latest software @@ -244,6 +244,38 @@ Tested on a Raspberry Pi Zero with a clean install of minimal Debian Stretch (20 * You may wish to reduce the size of the swap file after the build has finished, and delete the boost directory from your home directory +#### *Note for Raspbian Jessie Users:* + +If you are using the older Raspbian Jessie image, compiling Monero is a bit more complicated. The version of Boost available in the Debian Jessie repositories is too old to use with Monero, and thus you must compile a newer version yourself. The following explains the extra steps, and has been tested on a Raspberry Pi 2 with a clean install of minimal Raspbian Jessie. + +* As before, `apt-get update && apt-get upgrade` to install all of the latest software, and increase the system swap size + +``` + sudo /etc/init.d/dphys-swapfile stop + sudo nano /etc/dphys-swapfile + CONF_SWAPSIZE=1024 + sudo /etc/init.d/dphys-swapfile start +``` + +* Then, install the dependencies for Monero except `libunwind` and `libboost-all-dev` + +* Install the latest version of boost (this may first require invoking `apt-get remove --purge libboost*` to remove a previous version if you're not using a clean install): +``` + cd + wget https://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.bz2 + tar xvfo boost_1_64_0.tar.bz2 + cd boost_1_64_0 + ./bootstrap.sh + sudo ./b2 +``` +* Wait ~8 hours +``` + sudo ./bjam install +``` +* Wait ~4 hours + +* From here, follow the [general Raspberry Pi instructions](#on-the-raspberry-pi) from the "Clone monero and checkout most recent release version" step. + #### On Windows: Binaries for Windows are built on Windows using the MinGW toolchain within