arkency / ruby-build-cookbook

Cookbook providing definition to install Ruby for user using ruby-build.
11 stars 1 forks source link

Install ruby dependencies before #1

Open paneq opened 12 years ago

paneq commented 12 years ago
%w[git-core zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libxslt1-dev libmysqlclient-dev].each do |name|
  package name do
    action :install
  end
end

include_recipe "build-essential"
include_recipe "mysql::client

This is what we usually do before ruby installation. Could we do it depending on ruby version ? Do it for MRI, do something else for JRuby ? :)

mostlyobvious commented 12 years ago

FTR:

# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:
  ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

# For JRuby, install the following:
  jruby: /usr/bin/apt-get install curl g++ openjdk-6-jre-headless
  jruby-head: /usr/bin/apt-get install ant openjdk-6-jdk