fesplugas (owner)

Revisions

  • ef6c6b fesplugas Fri Nov 07 03:24:19 -0800 2008
  • e572d8 fesplugas Tue Nov 04 01:18:21 -0800 2008
  • 606d2b fesplugas Tue Nov 04 01:15:58 -0800 2008
  • 6eb723 fesplugas Tue Nov 04 01:13:05 -0800 2008
  • b97cd8 fesplugas Tue Nov 04 01:08:49 -0800 2008
  • 16afdc fesplugas Tue Nov 04 01:00:50 -0800 2008
  • 8bea05 fesplugas Mon Nov 03 16:44:02 -0800 2008
  • 8086a5 fesplugas Mon Nov 03 16:42:59 -0800 2008
  • e03f29 fesplugas Mon Nov 03 16:41:21 -0800 2008
  • 8dccec fesplugas Mon Nov 03 16:32:25 -0800 2008
gist: 22019 Download_button fork
public
Description:
Install ruby versions and common gems for development
Public Clone URL: git://gist.github.com/22019.git
Embed All Files: show embed
install_gems.sh #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
##
# Install gems for each Ruby version ... :(
#
RUBYGEMS="rubygems-1.3.1"
curl -O http://rubyforge-files.ruby-forum.com/rubygems/$RUBYGEMS.tgz
tar xvzf $RUBYGEMS.tgz
cd $RUBYGEMS && ruby setup.rb --no-rdoc --no-ri
 
##
# Install gems
#
gems=( capistrano termios mongrel mongrel_cluster RedCloth BlueCloth
       htmlentities gettext passenger thin aws-s3 fastercsv ZenTest
       rake sqlite3-ruby tzinfo rmagick rails )
 
for gem in ${gems[@]}; do
gem install --no-rdoc --no-ri $gem
done
 
##
# More gems
#
gem install --no-rdoc --no-ri rails -s http://gems.rubyonrails.org -v 2.2.0
 
install_ruby_versions.sh #
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
##
# Create first a temporary folder.
#
mkdir /tmp/ruby_installer && cd /tmp/ruby_installer
 
##
# Install stow
#
curl -O ftp://ftp.gnu.org/gnu/stow/stow-1.3.3.tar.gz
tar xvzf stow-1.3.3.tar.gz
cd stow-1.3.3 && ./configure && make install
 
##
# Ruby 1.8.6-p287
#
VERSION_186='1.8.6-p287'
curl -O http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-$VERSION_186.tar.gz
tar xvzf ruby-$VERSION_186.tar.gz
cd ruby-$VERSION_186 && ./configure --prefix=/usr/local/stow/ruby-$VERSION_186
make && sudo make install
cd ..
 
##
# Ruby 1.8.7-p72
#
VERSION_187='1.8.7-p72'
curl -O http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-$VERSION_187.tar.gz
tar xvzf ruby-$VERSION_187.tar.gz
cd ruby-$VERSION_187 && ./configure --prefix=/usr/local/stow/ruby-$VERSION_187
make && sudo make install
cd ..
 
##
# Ruby 1.9.1-preview1
#
VERSION_191='1.9.1-preview1'
curl -O http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$VERSION_191.tar.gz
tar xvzf ruby-$VERSION_191.tar.gz
cd ruby-$VERSION_191 && ./configure --prefix=/usr/local/stow/ruby-$VERSION_191
make && sudo make install
cd ..
 
echo "\nYou can enable a Ruby version with:\n"
echo "cd /usr/local/stow && sudo stow ruby-$VERSION_186"
echo "cd /usr/local/stow && sudo stow ruby-$VERSION_187"
echo "cd /usr/local/stow && sudo stow ruby-$VERSION_191"
echo "\nTo disable a Ruby version use:\n"
echo "cd /usr/local/stow && sudo stow -D ruby-$VERSION_186"
echo "cd /usr/local/stow && sudo stow -D ruby-$VERSION_187"
echo "cd /usr/local/stow && sudo stow -D ruby-$VERSION_191"
echo "\nRemember to install gems for each ruby version.\n"