#!/usr/bin/env bash system="$(uname)" item="$(tput setaf 2)* $(tput sgr0)" echo -e "\n$(tput setaf 6)**** NOTICE *************************************************************************************" echo -e "* The rubies install path has moved to \$rvm_path/rubies/ instead of directly in \$rvm_path. *" echo -e "* If you encounter any issues with a ruby your best bet is to 'rvm remove X ; rvm install X' *" echo -e "* Gems are now per interpreter installation instead of per interpreter/version *" echo -e "* so for example to upgrade an older install of 1.8.6 and preserve gems: *" echo -e "* rm -rf ~/.rvm/gems/ruby-1.8.6-p383 ; mv ~/.rvm/gems/ruby/1.8.6 ~/.rvm/gems/ruby-1.8.6-p383 *" echo -e "*************************************************************************************************$(tput sgr0)\n" if [[ "Linux" = "$system" ]] ; then for file in /etc/*-release ; do release="( $(cat $file) )" ; break done echo -e "\n$(tput setaf 2)Notes for ${system} $release$(tput sgr0)\n" rvm_apt_get_binary="$(which aptitude 2> /dev/null)" rvm_emerge_binary="$(which emerge 2> /dev/null)" rvm_pacman_binary="$(which pacman 2> /dev/null)" rvm_yum_binary="$(which yum 2> /dev/null)" echo -e "\n $item curl is required.\n" if [[ ! -z "$rvm_apt_get_binary" ]] ; then echo -e " $item For JRuby (if you wish to use it) you will need:" echo -e "\n $ aptitude install curl sun-java6-bin sun-java6-jre sun-java6-jdk" echo -e "\n $item For MRI & ree (if you wish to use it) you will need:" echo -e "\n $ aptitude install curl bison build-essential zlib1g-dev libssl-dev libreadline5-dev libxml2-dev git-core" echo -e "\n $item For IronRuby (if you wish to use it) you will need:" echo -e "\n $ aptitude install curl mono-2.0-devel" elif [[ ! -z "$rvm_emerge_binary" ]] ; then echo -e " $item For JRuby (if you wish to use it) you will need:" echo -e "\n $ emerge dev-java/sun-jdk dev-java/sun-jre-bin" echo -e "\n $item For IronRuby (if you wish to use it) you will need:" echo -e "\n $ emerge dev-lang/mono" elif [[ ! -z "$rvm_pacman_binary" ]] ; then echo -e " $item For JRuby (if you wish to use it) you will need:" echo -e "\n $ pacman -Sy jdk jre curl" echo -e "\n $item For IronRuby (if you wish to use it) you will need:" echo -e "\n $ pacman -Sy mono" elif [[ ! -z "$rvm_yum_binary" ]] ; then echo -e " $item For ree (if you wish to use it) you will need:" echo -e "\n $ yum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..." else echo -e " $item For JRuby (if you wish to use it) you will need:" echo -e "\n The SUN java runtime environment and development kit." echo -e "\n $item For IronRuby (if you wish to use it) you will need:" echo -e "\n The Mono Runtime and Development Platform (version 2.6 or greater is recommended)." fi elif [[ "Darwin" = "$system" ]] ; then release="( $(sw_vers -productName) )" echo -e "\n$(tput setaf 2)Notes for ${system} $release $(tput sgr0)\n" echo -e "\n $item For Snow Leopard be sure to have XCode Tools Version 3.2.1 (1613) or later (there were bugs with the dvd release version)." echo -e "\n $item You should download the latest XCode tools from developer.apple.com. This is necessary since the dvd install for Snow Leopard has bugs." echo -e "\n $item If you intend on installing MacRuby you must install LLVM first." echo -e "\n $item If you intend on installing JRuby you must install the JDK." echo -e "\n $item If you intend on installing IronRuby you must install Mono (version 2.6 or greater is recommended)." fi echo