Ruby Enterprise Edition 1.8.7

by punchh
2 deployments · 1 still active · last rev. 5 years ago

Installs REE 1.8.7

Compatible with: No distros currently supported
						#!/bin/bash

function install_ree {

  REE_NAME="ruby-enterprise-$1"
  WORKING_DIR="$TMPDIR/setup"
  REE_FILENAME="$REE_NAME.tar.gz"
  REE_DOWNLOAD="http://rubyenterpriseedition.googlecode.com/files/$REE_FILENAME"

  apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libmysql-ruby libmysqlclient-dev

  echo "REE_FILENAME = $REE_FILENAME"
  echo "REE_DOWNLOAD = $REE_DOWNLOAD"
  echo "Sleeping for 10" && sleep 10

  # Download
  mkdir -p "$WORKING_DIR"
  cd       "$WORKING_DIR"
  wget     "$REE_DOWNLOAD" -O "$REE_FILENAME"
  tar xzf  "$REE_FILENAME"
  cd       "$REE_NAME"

  # Install
  ./installer --auto="$INSTALL_PREFIX/$REE_NAME"
  ln -s "$INSTALL_PREFIX/$REE_NAME" "$INSTALL_PREFIX/ree"

  # Add REE to the PATH
  PATH="$INSTALL_PREFIX/ree/bin:$PATH"
}