This guide provides a walk-through of how to install the latest version of Ruby and Ruby packages along with the MQTT Client library.

Installing Ruby

Install Ruby and the package manager Ruby Gems by running the following command:

sudo apt install ruby-full build-essential

Check the installation and Ruby version:

ruby -v
ruby 2.5.5p157 (2019-03-15 revision 67260) [arm-linux-gnueabihf]

Installing MQTT Client

This documentation uses qubitro-mqtt as a client library.

Install the latest stable version by running the following command:

Gem VersionActions Status

gem install qubitro-mqtt

Try with sudo if you get : ERROR: While executing gem ... (Gem::FilePermissionError)

Connect Device

Start connecting devices by following the guide :