-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_ruby
More file actions
executable file
·37 lines (31 loc) · 1.13 KB
/
build_ruby
File metadata and controls
executable file
·37 lines (31 loc) · 1.13 KB
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
#!/bin/sh
# 1.8.7-p374
cd /tmp
curl -sL -o ruby-1.8.7-p374.tar.gz http://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.gz
tar zxf ruby-1.8.7-p374.tar.gz
cd ruby-1.8.7-p374
./configure --prefix=/ruby-1.8 --enable-static && make && make install
# rubygems 2.4.2 for ruby 1.8.7
cd /tmp
curl -kSOL http://production.cf.rubygems.org/rubygems/rubygems-2.4.2.tgz
tar zxf rubygems-2.4.2.tgz
cd rubygems-2.4.2
/ruby-1.8/bin/ruby setup.rb
# 1.9.3-p547
cd /tmp
curl -sL -o ruby-1.9.3-p547.tar.gz http://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p547.tar.gz
tar zxf ruby-1.9.3-p547.tar.gz
cd ruby-1.9.3-p547
./configure --prefix=/ruby-1.9 --disable-install-rdoc && make && make install
# 2.0.0-p576
cd /tmp
curl -sL -o ruby-2.0.0-p576.tar.gz http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p576.tar.gz
tar zxf ruby-2.0.0-p576.tar.gz
cd ruby-2.0.0-p576
./configure --prefix=/ruby-2.0 --disable-install-rdoc && make && make install
# 2.1.3
cd /tmp
curl -sL -o ruby-2.1.3.tar.gz http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.gz
tar zxf ruby-2.1.3.tar.gz
cd ruby-2.1.3
./configure --prefix=/ruby-2.1 --disable-install-rdoc && make && make install