Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • MariaDB Cookbook
  • Toc
  • feedback
MariaDB Cookbook

MariaDB Cookbook

By : Daniel Bartholomew
4.2 (9)
close
MariaDB Cookbook

MariaDB Cookbook

4.2 (9)
By: Daniel Bartholomew

Overview of this book

Table of Contents (20 chapters)
close
MariaDB Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing the HandlerSocket Ruby client libraries


Ruby is the last language in our trio of scripting languages compatible with HandlerSocket in this chapter. Installing and using this library is easy.

Getting ready

Install the libhsclient library as described in the Installing the libhsclient library recipe earlier in this chapter. In order to build the HandlerSocket Ruby client libraries, we need to install some development tools and packages.

On Red Hat, Fedora, or CentOS, run the following command:

sudo yum install ruby-irb rubygems ruby-rdoc ruby-devel

On Debian or Ubuntu, run the following command:

sudo apt-get install irb rubygems rdoc ruby-dev

We are now ready to install the HandlerSocket Ruby client libraries.

How to do it...

  1. Use rubygems to install the handlersocket gem in a terminal window, as follows:

    sudo gem install 'handlersocket'
    
  2. Launch the irb interactive Ruby interpreter and check that the handlersocket library loads as follows:

    irb
    require 'rubygems'
    require 'handlersocket...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete