Master Lamps avatar

How build RYO from sources on Linux with a Windows Machine

master-lamps

Published: 14 Dec 2020 › Updated: 14 Dec 2020How build RYO from sources on Linux with a Windows Machine

How build RYO from sources on Linux with a Windows Machine

The increasing usage of open source let Microsoft to introduce Windows Subsystem Linux (WSL) to welcome users and developers onto their platform.
WSL is avaliable for Windows 10. In order to avoid joining the Widnows insider program please follow this manual.
WSL is providing:

  • Ubuntu
  • openSuse
  • Suse Linux Enterprise Server
  • Debian GNU/Linux
  • Kali Linux

I installed Ubuntu 18.04 LTS because I started my experience with Linux with Mark Shuttleworth's distribution.

First thing you do with subsystem is - update. So first command would be sudo apt-get update.
After the package manager received the update, you need to install the updates.
sudo apt-get upgrade -y

If you are bold you do both things in one call:
sudo apt-get update && sudo apt-get upgrade -y

001udpate.png

Now the Linux subsystem is up to date, we are ready to get the RYO's dependencies and source from github.

Let's get the dependency of RYO now.

sudo apt update && sudo apt install build-essential cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpgm-dev

002dependency.png

On Debian/Ubuntu libgtest-dev only includes sources and headers. You must build the library binary manually. This can be done with the following command
sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake CMakeLists.txt && sudo make && sudo mv libg* /usr/lib/

003libgtest.png

Let's get RYO sources
git clone -b dev https://github.com/ryo-currency/ryo-currency.git
cd ryo-currency

You can speed up the build process by parallelization of process via multiple threads. If you don't know your CPU and RAM.
Enter nproc for the number of processors and free -g for the amount of RAM.
ram.png

Based on your system the command will be make -j<# of threads> my CPU supports 4 threads and I have 32GB of free RAM which is enough (4x2 ≤ 32) to use all possible threads.

004make.png

The build result you can find under
cd build/debug/bin/

If you are a user of the RYO GUI wallet Atom with the local node option enabled then you’ll already have the blockchain downloaded to your Windows file system.
WSL provides access to your Windows directories in the /mnt/c/ path so using Atoms default location we can run the following to avoid downloading the blockchain again to the Linux file system being run on WSL.
./ryod --data-dir /mnt/c/ProgramData/ryo/ --log-file-level 2 --log-file ~/ryo_debug.log

Leave How build RYO from sources on Linux with a Windows Machine to:

Written by

Rabbit of Courage Difficile est satiram non scribere born with a 💚 Curator Studiorum Amatoriorum

Read more #crypto posts


Best Posts From Master Lamps

We have not curated any of master-lamps's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Master Lamps