-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
notes
executable file
·62 lines (52 loc) · 3.12 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
#!/usr/bin/env bash
system="$(uname)"
item="$(tput setaf 2)* $(tput sgr0)"
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"
echo -e "\n $item patch is required (for ree, some ruby head's).\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 MRI/ree (if you wish to use it) you will need:"
echo -e "\n $ yum install -y gcc-c++ patch readline readline-devel iconv-devel zlib zlib-devel"
echo -e "\n $item For JRuby (if you wish to use it) you will need:"
echo -e "\n $ yum install -y java"
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