Skip to content

Installation

jeremywinters edited this page Apr 16, 2017 · 1 revision

SneaQL runs on jruby, the ruby language implemented in java. Jruby allows for the use of JDBC, which reduces the complexity in configuring database connections.

Installing JRuby (OSX)

The best way to install jruby on OSX is using the following applications:

  • Homebrew - a package manager for OSX
  • rbenv - a ruby environment manager
  • ruby-build - an extension to rbenv which allows for easy ruby install

The following commands should be run in the terminal app, and will install all three of the above applications:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install rbenv ruby-build

Once rbenv and ruby-build are installed... you can install and configure jruby using the following commands:

rbenv install jruby-9.1.5.0
rbenv global jruby-9.1.5.0

Add the following to your ~/.bash_profile:

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

Please note that this will make jruby the default version of ruby for your system. If you need to use other versions of ruby for other tasks please read up on how to use rbenv.

Installing JRuby (Windows)

To install jruby on windows you will need to download the appropriate installer from the jruby website:

http://jruby.org

Installing SneaQL Gem

Now that jruby is installed... installing SneaQL is easy:

gem install sneaql
rbenv rehash

At this point you should be able to use the Command Line Interface.