Skip to content
Permalink
Browse files

update rpi spanish doc and Centos build howto

  • Loading branch information
mikehash committed Nov 29, 2019
1 parent 7bc47db commit d01d8cd5b14dd401957f3b8df4eac90f71270944
Showing with 27 additions and 42 deletions.
  1. +22 −34 docs/en/Build-Qtum-on-CentOS.html
  2. +5 −8 docs/es/Qtum en Raspberry Pi/index.html
@@ -686,48 +686,36 @@ <h1>
<section class="normal markdown-section">

<h1 id="build-qtum-on-centos-7"><a name="build-qtum-on-centos-7" class="plugin-anchor" href="#build-qtum-on-centos-7"><i class="fa fa-link" aria-hidden="true"></i></a>Build Qtum on CentOS 7</h1>
<p>It is quite a pain to build Qtum on CentOS because CentOS provides quite old versions of the <code>boost</code> library. Actually We need to build the <code>boost</code> library manually.</p>
<p>CentOS is an enterprise-oriented Linux distribution, that means it&apos;s focused for stability and security but not necessarily the latest software. With that being said, you <em>cannot</em> currently build Qtum in CentOS 7 following the steps that other more recent distributions can use. </p>
<p>In this document we&apos;ll show how to build Qtum in CentOS 7 and produce a <strong>static binary</strong> which can then be executed on any other Linux distribution, even if it&apos;s more recent. </p>
<h2 id="general-prerequisites"><a name="general-prerequisites" class="plugin-anchor" href="#general-prerequisites"><i class="fa fa-link" aria-hidden="true"></i></a>General Prerequisites</h2>
<p>Add <code>epel-release</code> repo and install some utils:</p>
<pre><code class="lang-bash">sudo yum install epel-release gcc-c++ git
<pre><code class="lang-bash">sudo yum update -y
sudo yum install -y tar unzip git <span class="hljs-built_in">which</span> wget patch make autoconf automake libtool \
epel-release centos-release-scl centos-release-scl-rh finduitls vim mc openssl-devel \
file
</code></pre>
<h2 id="building-boost"><a name="building-boost" class="plugin-anchor" href="#building-boost"><i class="fa fa-link" aria-hidden="true"></i></a>Building Boost</h2>
<p>We need <code>boost &gt;= 1.58.0</code> for Qtum but CentOS 7 only provides <code>boost &lt;= 1.53.0</code>, one way is to build it manually.</p>
<p>First we install some dependencies:</p>
<pre><code class="lang-bash">sudo yum install python-devel bzip2-devel
<h2 id="install-and-enable-devtoolset7"><a name="install-and-enable-devtoolset7" class="plugin-anchor" href="#install-and-enable-devtoolset7"><i class="fa fa-link" aria-hidden="true"></i></a>Install and enable devtoolset7</h2>
<pre><code class="lang-bash">yum install -y devtoolset-7-gcc* &amp;&amp; \
<span class="hljs-built_in">echo</span> <span class="hljs-string">&quot;source scl_source enable devtoolset-7&quot;</span> &gt;&gt; /root/.bashrc
<span class="hljs-built_in">source</span> scl_<span class="hljs-built_in">source</span> <span class="hljs-built_in">enable</span> devtoolset-7
</code></pre>
<p>Then we clone the boost library from GitHub:</p>
<pre><code class="lang-bash">git <span class="hljs-built_in">clone</span> https://github.com/boostorg/boost.git
<span class="hljs-built_in">cd</span> boost
<h2 id="clone-qtum-source-from-github"><a name="clone-qtum-source-from-github" class="plugin-anchor" href="#clone-qtum-source-from-github"><i class="fa fa-link" aria-hidden="true"></i></a>Clone Qtum source from Github:</h2>
<pre><code class="lang-bash">git <span class="hljs-built_in">clone</span> --recurse-submodules --depth 1 -b https://github.com/qtuproject/qtum/
</code></pre>
<p>Checking out a release version and init submodules:</p>
<pre><code class="lang-bash">git checkout boost-1.58.0
git submodule update --init --recursive
<h2 id="building-qtum-dependencies-this-will-take-a-while-were-building-every-dependency-needed-by-qtum"><a name="building-qtum-dependencies-this-will-take-a-while-were-building-every-dependency-needed-by-qtum" class="plugin-anchor" href="#building-qtum-dependencies-this-will-take-a-while-were-building-every-dependency-needed-by-qtum"><i class="fa fa-link" aria-hidden="true"></i></a>Building Qtum dependencies (This will take a while, we&apos;re building every dependency needed by Qtum)</h2>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> qtum
make -C depends/
</code></pre>
<p>Building boost:<br>You may set the <code>--prefix</code> and <code>--libdir</code> to anywhere you like or leave it by default, but then you have to add the <em>libdir</em> into <code>LD_LIBRARY_PATH</code> env when building and running Qtum, which is annoying somehow.</p>
<pre><code class="lang-bash"><span class="hljs-comment"># omit the --libdir option for 32-bit systems</span>
./bootstrap.sh --prefix=/usr --libdir=/usr/lib64
./b2 headers
<span class="hljs-comment"># you may set -j&lt;N&gt; where N is the core number or thread number of your CPU.</span>
sudo ./b2 -j4 install
<h2 id="add-dependencies-to-your-path-temporarily-only-needed-for-the-build"><a name="add-dependencies-to-your-path-temporarily-only-needed-for-the-build" class="plugin-anchor" href="#add-dependencies-to-your-path-temporarily-only-needed-for-the-build"><i class="fa fa-link" aria-hidden="true"></i></a>Add dependencies to your PATH (temporarily, only needed for the build)</h2>
<pre><code class="lang-bash">DEPENDS=<span class="hljs-string">&quot;<span class="hljs-variable">$(pwd)</span>/depends/x86_64-pc-linux-gnu&quot;</span>
</code></pre>
<h2 id="building-qtum"><a name="building-qtum" class="plugin-anchor" href="#building-qtum"><i class="fa fa-link" aria-hidden="true"></i></a>Building Qtum</h2>
<p>Install dependencies:</p>
<pre><code class="lang-bash">sudo yum install libtool libdb4-cxx-devel openssl-devel libevent-devel
</code></pre>
<p>If you need to build the <code>qtum-qt</code> GUI, install these:</p>
<pre><code class="lang-bash">sudo yum install qt5-qttools-devel protobuf-devel qrencode-devel
</code></pre>
<p>Cloning the project and init submodules:</p>
<pre><code class="lang-bash">git <span class="hljs-built_in">clone</span> https://github.com/qtumproject/qtum.git
<span class="hljs-built_in">cd</span> qtum
git submodule update --init --recursive
</code></pre>
<p>Configuring and building:<br>If you have installed boost to any location other than <code>/</code>, <code>/usr</code>, <code>/usr/local</code>, you need to indicate the location with <code>--with-boost=/path/to/your/boost</code>, and add <code>/path/to/your/boost/lib</code> into <code>LD_LIBRARY_PATH</code> env</p>
<h2 id="and-finally-build-qtum"><a name="and-finally-build-qtum" class="plugin-anchor" href="#and-finally-build-qtum"><i class="fa fa-link" aria-hidden="true"></i></a>And finally, build Qtum</h2>
<pre><code class="lang-bash">./autogen.sh
./configure
make -j4
./configure --prefix=<span class="hljs-variable">$DEPENDS</span>
make
</code></pre>
<p>On a modern computer (6 core or more) this can take from 6-20 minutes to complete. Once it&apos;s done, you&apos;ll have a statically built binary for Centos 7 and pretty much any other Linux distrubtion</p>


</section>
@@ -771,7 +759,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"How to Build Qtum on CentOS","level":"5.3","depth":1,"next":{"title":"How to Build Qtum on Raspbian","level":"5.4","depth":1,"path":"How-To-Build-Qtum-On-Raspbian.md","ref":"How-To-Build-Qtum-On-Raspbian.md","articles":[]},"previous":{"title":"Launch Qtum With Docker","level":"5.2","depth":1,"path":"Launch-Qtum-with-Docker.md","ref":"Launch-Qtum-with-Docker.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","language-picker","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"anchors":{},"highlight":{},"search":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Qtum Documentation","language":"en","gitbook":"*"},"file":{"path":"Build-Qtum-on-CentOS.md","mtime":"2018-07-13T09:17:25.884Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-10-24T07:49:39.910Z"},"basePath":".","book":{"language":"en"}});
gitbook.page.hasChanged({"page":{"title":"How to Build Qtum on CentOS","level":"5.3","depth":1,"next":{"title":"How to Build Qtum on Raspbian","level":"5.4","depth":1,"path":"How-To-Build-Qtum-On-Raspbian.md","ref":"How-To-Build-Qtum-On-Raspbian.md","articles":[]},"previous":{"title":"Launch Qtum With Docker","level":"5.2","depth":1,"path":"Launch-Qtum-with-Docker.md","ref":"Launch-Qtum-with-Docker.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","language-picker","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"anchors":{},"highlight":{},"search":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Qtum Documentation","language":"en","gitbook":"*"},"file":{"path":"Build-Qtum-on-CentOS.md","mtime":"2019-11-29T02:12:46.310Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-11-29T16:48:47.855Z"},"basePath":".","book":{"language":"en"}});
});
</script>
</div>
@@ -336,20 +336,17 @@ <h3 id="registro-de-cambios"><a name="registro-de-cambios" class="plugin-anchor"
</ul>
<h3 id="descargar-enlaces"><a name="descargar-enlaces" class="plugin-anchor" href="#descargar-enlaces"><i class="fa fa-link" aria-hidden="true"></i></a>Descargar enlaces:</h3>
<h4 id="qtum-raspbian-recomendado-de-raspberry-pi-2---raspberry-pi-4"><a name="qtum-raspbian-recomendado-de-raspberry-pi-2---raspberry-pi-4" class="plugin-anchor" href="#qtum-raspbian-recomendado-de-raspberry-pi-2---raspberry-pi-4"><i class="fa fa-link" aria-hidden="true"></i></a>Qtum Raspbian (Recomendado de Raspberry Pi 2 - Raspberry Pi 4)</h4>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-Raspbian.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-Raspbian.zip</a></p>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-Raspbian-lite.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-Raspbian-lite.zip</a></p>
<h4 id="qtum-pizero-recomendado-para-raspberry-pi-1-y-pi-zero"><a name="qtum-pizero-recomendado-para-raspberry-pi-1-y-pi-zero" class="plugin-anchor" href="#qtum-pizero-recomendado-para-raspberry-pi-1-y-pi-zero"><i class="fa fa-link" aria-hidden="true"></i></a>Qtum PiZero (Recomendado para Raspberry Pi 1 y Pi Zero)</h4>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero.zip</a></p>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero-lite.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero-lite.zip</a></p>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian.zip</a></p>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian-lite.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian-lite.zip</a></p>
<h3 id="grabando-la-imagen-qtum-raspbian-en-tu-tarjeta-sd"><a name="grabando-la-imagen-qtum-raspbian-en-tu-tarjeta-sd" class="plugin-anchor" href="#grabando-la-imagen-qtum-raspbian-en-tu-tarjeta-sd"><i class="fa fa-link" aria-hidden="true"></i></a>&quot;Grabando&quot; la imagen Qtum Raspbian en tu tarjeta SD</h3>
<p>Por favor Mire este video tutorial que muestra c&#xF3;mo descargar, grabar y usar su imagen Qtum Raspbian</p>
<p><a href="https://www.youtube.com/watch?v=0W6NlIk7Tgw&amp;t=0s" target="_blank">https://www.youtube.com/watch?v=0W6NlIk7Tgw&amp;t=0s</a></p>
<h2 id="raspberry-pi-zero"><a name="raspberry-pi-zero" class="plugin-anchor" href="#raspberry-pi-zero"><i class="fa fa-link" aria-hidden="true"></i></a>Raspberry Pi Zero</h2>
<p>Qtum Raspbian ahora es compatible con Pi Zero !. Este es un dispositivo de $ 5 que tiene solo 512 MB de RAM y una CPU de 1 n&#xFA;cleo. &#xA1;Esto hace que Pi Zero sea la soluci&#xF3;n m&#xE1;s rentable para tener una stakingbox Qtum!</p>
<p>El proceso de instalaci&#xF3;n de Qtum Raspbian en el Pi Zero es el mismo que en el otro Raspberry Pis, sin embargo, esta versi&#xF3;n se recomienda para el Zero &quot;</p>
<h4 id="qtum-pizero-recomendado-para-raspberry-pi-1-y-pi-zero"><a name="qtum-pizero-recomendado-para-raspberry-pi-1-y-pi-zero" class="plugin-anchor" href="#qtum-pizero-recomendado-para-raspberry-pi-1-y-pi-zero"><i class="fa fa-link" aria-hidden="true"></i></a>Qtum PiZero (Recomendado para Raspberry Pi 1 y Pi Zero)</h4>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero.zip</a></p>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero-lite.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-08-19-Qtum-PiZero-lite.zip</a></p>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian-PiZero.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian-PiZero.zip</a></p>
<p><a href="https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian-PiZero-lite.zip" target="_blank">https://raspbianimages.s3.amazonaws.com/2019-09-26-Qtum-Raspbian-PiZero-lite.zip</a></p>
<p>La versi&#xF3;n de escritorio funciona y se puede usar con Pi Zero, pero encontrar&#xE1; un mejor rendimiento con la versi&#xF3;n &quot;Lite&quot;, ya que no tiene una l&#xED;nea de comando de escritorio, solo.</p>
<h3 id="restricciones-de-pi-zero-ram"><a name="restricciones-de-pi-zero-ram" class="plugin-anchor" href="#restricciones-de-pi-zero-ram"><i class="fa fa-link" aria-hidden="true"></i></a>Restricciones de Pi Zero RAM</h3>
<p>El Pi Zero tiene solo 512 MB de RAM, y una parte de ese RAM se &quot;comparte&quot; con la salida de video, lo que le da un poco menos de 500 MB de RAM. Qtum Raspbian tiene ZRAM habilitado de forma predeterminada, esto comprime su RAM para permitirle usar m&#xE1;s datos, sin embargo, para garantizar la estabilidad, debe habilitar SWAP.</p>
@@ -519,7 +516,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Staking con Raspberry Pi","level":"4.3","depth":1,"next":{"title":"Staking con FreeBSD","level":"4.4","depth":1,"path":"freebsd/README.md","ref":"freebsd/README.md","articles":[]},"previous":{"title":"Qtum en AWS","level":"4.2","depth":1,"path":"Qtum-AWS/README.md","ref":"Qtum-AWS/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","language-picker","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"anchors":{},"highlight":{},"search":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Qtum Documentation","language":"es","gitbook":"*"},"file":{"path":"Qtum en Raspberry Pi/README.md","mtime":"2019-10-23T02:17:47.998Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-10-24T07:49:39.910Z"},"basePath":"..","book":{"language":"es"}});
gitbook.page.hasChanged({"page":{"title":"Staking con Raspberry Pi","level":"4.3","depth":1,"next":{"title":"Staking con FreeBSD","level":"4.4","depth":1,"path":"freebsd/README.md","ref":"freebsd/README.md","articles":[]},"previous":{"title":"Qtum en AWS","level":"4.2","depth":1,"path":"Qtum-AWS/README.md","ref":"Qtum-AWS/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","language-picker","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"language-picker":{"grid-columns":3},"anchors":{},"highlight":{},"search":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Qtum Documentation","language":"es","gitbook":"*"},"file":{"path":"Qtum en Raspberry Pi/README.md","mtime":"2019-11-29T16:45:28.760Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-11-29T16:48:47.855Z"},"basePath":"..","book":{"language":"es"}});
});
</script>
</div>

0 comments on commit d01d8cd

Please sign in to comment.
You can’t perform that action at this time.