/
notes
executable file
·141 lines (108 loc) · 4.65 KB
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/usr/bin/env bash
system="$(uname)"
if [[ "Linux" = "$system" ]] ; then
for file in /etc/*-release ; do
release="( $(cat $file) )" ; break
done
printf "\n\nNotes for ${system} $release\n"
rvm_apt_binary="$(command -v aptitude || command -v apt-get)"
rvm_emerge_binary="$(command -v emerge)"
rvm_pacman_binary="$(command -v pacman)"
rvm_yum_binary="$(command -v yum)"
printf "
NOTE: 'ruby' represents Matz's Ruby Interpreter (MRI) (1.8.X, 1.9.X)
This is the *original* / standard Ruby Language Interpreter
'ree' represents Ruby Enterprise Edition
'rbx' represents Rubinius
bash >= 3.2 is required
curl is required
git is required (>= 1.7 recommended)
patch is required (for ree and some ruby-head's).
If you wish to install rbx and/or Ruby 1.9 head (MRI) (eg. 1.9.2-head),
then you must install and use rvm 1.8.7 first.
If you wish to have the 'pretty colors' again,
set 'export rvm_pretty_print_flag=1' in ~/.rvmrc.
"
if [[ ! -z "$rvm_apt_binary" ]] ; then
printf "
dependencies:
# For RVM
rvm: bash curl git
# For Ruby (MRI & ree) you should install the following OS dependencies:
ruby: ${rvm_apt_binary} install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# For JRuby (if you wish to use it) you will need:
jruby: ${rvm_apt_binary} install curl g++ openjdk-6-jre-headless
jruby-head: ${rvm_apt_binary} install ant openjdk-6-jdk
# In addition to ruby: dependencies,
ruby-head: subversion
# For IronRuby (if you wish to use it) you will need:
ironruby: ${rvm_apt_binary} install curl mono-2.0-devel
"
elif [[ ! -z "$rvm_emerge_binary" ]] ; then
printf "
dependencies:
# For RVM
rvm: bash curl git
# For MRI based rubies you will need:
ruby: emerge libiconv readline zlib openssl curl git libyaml sqlite libxslt
ruby-head: gcc bison autoconf automake m4
# For JRuby (if you wish to use it) you will need:
jruby: emerge dev-java/sun-jdk dev-java/sun-jre-bin
# For IronRuby (if you wish to use it) you will need:
ironruby: emerge dev-lang/mono
"
elif [[ ! -z "$rvm_pacman_binary" ]] ; then
printf "
dependencies:
# For RVM itself
rvm: bash curl git
# For Ruby (MRI & Ree) you should install the following OS dependencies:
ruby: pacman -Sy --noconfirm gcc patch curl bison zlib readline libxml2 libxslt git autoconf diffutils patch bison make
ruby-head: pacman -Sy --noconfirm subversion
# For JRuby (if you wish to use it) you will need:
jruby: pacman -Sy --noconfirm jdk jre curl
# For IronRuby (if you wish to use it) you will need:
ironruby: pacman -Sy --noconfirm mono
"
elif [[ ! -z "$rvm_yum_binary" ]] ; then
printf "
dependencies:
# For RVM
rvm: yum install -y bash curl git # NOTE: For git you need the EPEL repository enabled
# For Ruby (MRI & Ree) you should install the following OS dependencies:
ruby: yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel ;
yum install -y make bzip2 ;
yum install -y iconv-devel # NOTE: For centos 5.4 final iconv-devel might not be available :(
# For JRuby (if you wish to use it) you will need:
jruby: yum install -y java
"
else
printf "
dependencies:
# RVM
rvm: bash curl git
# For Ruby (MRI & Ree) you should install the following OS dependencies:
ruby: # gcc-c++ patch readline zlib libyaml iconv libxml2 libxslt
# For JRuby (if you wish to use it) you will need:
jruby: # The SUN java runtime environment and development kit.
# For IronRuby (if you wish to use it) you will need:
ironruby: #The Mono Runtime and Development Platform (version 2.6 or greater is recommended).
"
fi
elif [[ "Darwin" = "$system" ]] ; then
release="( $(sw_vers -productName) )"
printf "
Notes for ${system} $release
For Snow Leopard be sure to have Xcode Tools Version 3.2.1 (1613) or later
You should download the latest Xcode tools from developer.apple.com.
(This is since the dvd install for Snow Leopard contained bugs).
If you intend on installing MacRuby you must install LLVM first.
If you intend on installing JRuby you must install the JDK.
If you intend on installing IronRuby you must install Mono (version 2.6 or greater is recommended).
To seamlessly abandon the Apple-installed system ruby (ruby 1.8.7 patchlevel 174 for Snow Leopard):
rvm install 1.8.7 # installs patch 302: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system # migrate your gems
rvm --default 1.8.7
"
fi
echo