Installation

Vassil Kovatchev edited this page May 7, 2018 · 40 revisions

Requirements

  • 64-bit Ruby 2.x on Windows, Linux or macOS.
  • SQL Server 2008 - 2016.

Windows

  • Download and install 64-bit Ruby 2.4.x + Devkit using RubyInstaller.
    Note: tiny_tds fails to install on Ruby 2.5.x - it is recommended to use a Ruby version 2.4.x or earlier when running slacker on Windows.
  • Open up a PowerShell command prompt and run:
gem install slacker

Linux (Ubuntu ~>16.0.4)

The following script is based on these instructions.

sudo apt-get update
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
sudo apt-get install git

cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.4.0
rbenv global 2.4.0
ruby -v

wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.27.tar.gz
tar -xzf freetds-1.00.27.tar.gz
cd freetds-1.00.27
./configure --prefix=/usr/local --with-tdsver=7.3
make
make install

gem install slacker

macOS

The following script is based on these instructions.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install rbenv ruby-build
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

rbenv install 2.4.0
rbenv global 2.4.0
ruby -v

brew install FreeTDS

gem install slacker

See Quick Start to get started with Slacker.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.