Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Use simpler tokaido install #4

Closed
wants to merge 5 commits into from

3 participants

Terence Lee Thilo Utke Vesa Vänskä
Terence Lee
Owner
hone commented May 26, 2012

I've been working with @wycats on getting @tokaido ready to use for Rails Girls Amsterdam. This is the result of the work. It's a binary distribution of ruby and the gems needed to run rails, so they don't have to deal with rvm, homebrew, or compiling. I spent a long time with to no avail helping a girl with linking errors at Rails Girls Krakow and I think this will fix the issue.

Terence Lee hone referenced this pull request in railsgirls/railsgirls.github.com May 26, 2012
Merged

Update OS X install guide based on work from tokaido #14

Terence Lee hone referenced this pull request from a commit May 26, 2012
Commit has since been removed from the repository and is no longer available.
Terence Lee hone referenced this pull request from a commit in hone/railsgirls.github.com May 26, 2012
Terence Lee clean up os x install guide based on railsgirls/installation-scripts#4 8aee0ea
Terence Lee hone closed this May 29, 2012
Terence Lee
Owner
hone commented May 29, 2012

merged this in.

Przemysław Dąbek szemek referenced this pull request from a commit in webmuses/guides May 26, 2012
Terence Lee clean up os x install guide based on railsgirls/installation-scripts#4 2bcf0b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
37  rails-install-osx-rvm.sh
... ...
@@ -0,0 +1,37 @@
  1
+set -e
  2
+
  3
+echo "Installs Homebrew for installing other software"
  4
+/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
  5
+brew update
  6
+
  7
+echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
  8
+curl -kL get.rvm.io | bash -s stable
  9
+source ~/.rvm/scripts/rvm
  10
+
  11
+echo "Install Ruby"
  12
+rvm install 1.9.3-p194
  13
+rvm use 1.9.3-p194 --default
  14
+
  15
+gem install bundler --no-rdoc --no-ri
  16
+gem install rails --no-rdoc --no-ri
  17
+
  18
+echo -e "\n- - - - - -\n"
  19
+echo -e "Now we are going to print some information to check that everything is done:\n"
  20
+
  21
+echo -n "Should be brew 0.8 or higher:       brew "
  22
+brew -v
  23
+echo -n "Should be sqlite 3.7.3 or higher: sqlite "
  24
+sqlite3 --version
  25
+echo -n "Should be rvm 1.6.32 or higher:          "
  26
+rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10
  27
+echo -n "Should be ruby 1.9.3-p194:                "
  28
+ruby -v | cut -d " " -f 2
  29
+echo -n "Should be Rails 3.2.2 or higher:         "
  30
+rails -v
  31
+echo -e "\n- - - - - -\n"
  32
+
  33
+echo "If the versions match, everything is installed correctly. If the versions 
  34
+don't match or errors are shown, something went wrong with the automated process 
  35
+and we will help you do the installation the manual way at the event.
  36
+
  37
+Congrats!"
74  rails-install-osx.sh
... ...
@@ -1,37 +1,45 @@
1  
-set -e
2  
-
3  
-echo "Installs Homebrew for installing other software"
4  
-/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
5  
-brew update
6  
-
7  
-echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
8  
-curl -L get.rvm.io | bash -s stable
9  
-source ~/.rvm/scripts/rvm
10  
-
11  
-echo "Install Ruby"
12  
-rvm install 1.9.3-p125
13  
-rvm use 1.9.3-p125 --default
14  
-
15  
-gem install bundler --no-rdoc --no-ri
16  
-gem install rails --no-rdoc --no-ri
17  
-
18  
-echo -e "\n- - - - - -\n"
  1
+#!/bin/sh
  2
+PACKAGE_URL="http://dl.dropbox.com/u/132031/tokaidoapp.tgz"
  3
+TOKAIDO_DIR="$HOME/.tokaidoapp"
  4
+RUBY_VERSION="1.9.3-p194"
  5
+
  6
+function mktmpdir() {
  7
+dir=$(mktemp -t tokaido-XXXX)
  8
+rm -rf $dir
  9
+mkdir -p $dir
  10
+echo $dir
  11
+}
  12
+
  13
+tmpdir=$(mktmpdir)
  14
+cd $tmpdir
  15
+echo "Downloading Tokaido.app"
  16
+curl $PACKAGE_URL -\# -o - | tar zxf -
  17
+
  18
+echo "Setting up Tokaido.app"
  19
+mkdir -p $TOKAIDO_DIR
  20
+mkdir -p $TOKAIDO_DIR/rubies
  21
+mkdir -p $TOKAIDO_DIR/gems
  22
+mv .tokaidoapp/rubies/$RUBY_VERSION $TOKAIDO_DIR/rubies/
  23
+mv .tokaidoapp/gems/$RUBY_VERSION $TOKAIDO_DIR/gems/
  24
+mv .tokaidoapp/tokaidoapp.sh $TOKAIDO_DIR/
  25
+
  26
+rm -rf $tmpdir
  27
+
  28
+echo "[[ -s $HOME/.tokaidoapp/tokaidoapp.sh ]] && source $HOME/.tokaidoapp/tokaidoapp.sh" >> $HOME/.profile
  29
+source $HOME/.tokaidoapp/tokaidoapp.sh
  30
+
  31
+echo -e "\n- - - - - - - - - \n"
19 32
 echo -e "Now we are going to print some information to check that everything is done:\n"
20 33
 
21  
-echo -n "Should be brew 0.8 or higher:       brew "
22  
-brew -v
23  
-echo -n "Should be sqlite 3.7.3 or higher: sqlite "
24  
-sqlite3 --version
25  
-echo -n "Should be rvm 1.6.32 or higher:          "
26  
-rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10
27  
-echo -n "Should be ruby 1.9.3p125:                "
28  
-ruby -v | cut -d " " -f 2
29  
-echo -n "Should be Rails 3.2.2 or higher:         "
  34
+echo    " ,;;;, ,;;;,"
  35
+echo -n ";;;' ';' ';;; Should be ruby 1.9.3p194: "
  36
+ruby -v | cut -c 1-14
  37
+echo    ";;;       ;;;"
  38
+echo -n " ';;,   ,;;'  Should be Rails 3.2.3: "
30 39
 rails -v
31  
-echo -e "\n- - - - - -\n"
32  
-
33  
-echo "If the versions match, everything is installed correctly. If the versions 
34  
-don't match or errors are shown, something went wrong with the automated process 
35  
-and we will help you do the installation the manual way at the event.
  40
+echo    "   ';;,;;'"
  41
+echo    "     ';'"
  42
+echo -e "\n- - - - - - - - - \n"
36 43
 
37  
-Congrats!"
  44
+echo "Done!"
  45
+echo "Please restart your terminal."
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.