Fork me on GitHub

Install Ruby 1.9.3

Before we can install the Vines gem, we need to install Ruby 1.9.3. The install is only two steps:

  1. Install the OS libraries upon which Ruby depends.
  2. Install Ruby packages.

OS X

Install Xcode from the Mac App Store. Then make sure to install the Command Line Tools package from the Xcode > Preferences > Downloads screen. This installs all of the libraries and compiler tools needed to build Ruby.

Install Homebrew so we can compile Ruby.

$ brew install ruby
$ sudo gem install vines

Ubuntu

Install the following packages using apt-get. Ubuntu 12.04 and later provides a Ruby 1.9.3 package.

$ sudo apt-get -y install build-essential bison openssl \
  libreadline6 libreadline6-dev curl git zlib1g-dev \
  libssl-dev libyaml-dev libsqlite3-dev sqlite3 libc6-dev \
  libxml2-dev libxslt-dev autoconf ncurses-dev ruby1.9.3
$ sudo gem install vines

Fedora

Install the following packages using yum. Fedora 17 and later provides a Ruby 1.9.3 package.

$ sudo yum install -y git gcc-c++ patch readline-devel \
  libyaml-devel libffi-devel openssl-devel bzip2 \
  sqlite-devel libxslt-devel ruby-devel
$ sudo gem install vines

SUSE

Install the following packages using zypper. SUSE 12.2 and later provides a Ruby 1.9.3 package.

$ sudo zypper install -y bash curl git gcc-c++ patch \
  libreadline6 readline-devel zlib zlib-devel libyaml-devel \
  libffi-devel libopenssl-devel make bzip2 sqlite3 \
  sqlite3-devel libxslt libxslt-devel libxml2 libxml2-devel \
  ruby-devel
$ sudo gem install vines

FreeBSD

Install the following packages using pkg_add. FreeBSD 9.1 and later provides a Ruby 1.9.3 port.

$ sudo pkg_add -r bash curl git openssl bzip2 readline \
  sqlite3 libxml2 libxslt libyaml
$ sudo echo "RUBY_DEFAULT_VER=1.9" >> /etc/make.conf
$ cd /usr/ports/lang/ruby19 && sudo make install clean
$ cd /usr/ports/devel/ruby-gems/ && sudo make install clean
$ sudo gem install vines

That's all there is to it!