Permalink
Browse files

Fix install for Mountain Lion and RVM 1.16

* Install Homebrew before RVM.
* Fix permissions.
* Install GCC 4.2.
* Use GCC dependencies listed by RVM.
* Use RVM version 1.15.10 because RVM 1.16.0 is broken with zsh.
* Use a one-step Ruby default.
  • Loading branch information...
1 parent eb6a701 commit 7d7b9d77d34bf291c41bb9e71b899c40353b310e @croaky croaky committed Oct 2, 2012
Showing with 34 additions and 30 deletions.
  1. +2 −4 README.md
  2. +32 −26 mac
View
@@ -6,17 +6,15 @@ Laptop is a script to set up a Mac OS X laptop for Rails development.
Requirements
------------
-* Install a C compiler, such as GCC, LLVM, or Clang.
+1) Install a C compiler.
Use [OS X GCC Installer](https://github.com/kennethreitz/osx-gcc-installer/) for
Snow Leopard (OS X 10.6).
Use [Command Line Tools for XCode](https://developer.apple.com/downloads/index.action)
for Lion (OS X 10.7) or Mountain Lion (OS X 10.8).
-* Set zsh as your login shell.
-
-To change your login shell run this from a Terminal:
+2) Set zsh as your login shell.
chsh -s /bin/zsh
View
@@ -11,42 +11,26 @@ echo "Copying public key to clipboard. Paste it into your Github account ..."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
successfully open https://github.com/account/ssh
-echo "Installing RVM (Ruby Version Manager) ..."
- successfully curl -L https://get.rvm.io | bash -s stable --ruby
- successfully echo "
-# RVM
-[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
- successfully source ~/.zshrc
-
-echo "Installing Ruby 1.9.3 stable and making it the default Ruby ..."
- successfully rvm install 1.9.3 --with-gcc=clang
- successfully rvm use 1.9.3 --default
-
-echo "Installing Bundler to build gem dependencies ..."
- successfully gem install bundler -v '~> 1.2.0.rc.2' --no-rdoc --no-ri
-
-echo "Installing Rails to write and run web applications ..."
- successfully gem install rails --no-rdoc --no-ri
-
-echo "Installing the Heroku gem to interact with the http://heroku.com API ..."
- successfully gem install heroku --no-rdoc --no-ri
-
-echo "Installing the pg gem to talk to Postgres databases ..."
- successfully gem install pg --no-rdoc --no-ri
-
-echo "Installing the foreman gem for serving your Rails apps in development mode ..."
- successfully gem install foreman --no-rdoc --no-ri
+echo "Fixing permissions ..."
+ successfully sudo chown -R `whoami` /usr/local
echo "Installing Homebrew, a good OS X package manager ..."
successfully ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
successfully brew update
-echo "Put Homebrew location earlier in PATH ..."
+echo "Putting Homebrew location earlier in PATH ..."
successfully echo "
# recommended by brew doctor
export PATH='/usr/local/bin:$PATH'" >> ~/.zshrc
successfully source ~/.zshrc
+echo "Installing GNU Compiler Collection and dependencies ..."
+ successfully brew tap homebrew/dupes
+ successfully brew install autoconf automake apple-gcc42
+
+echo "Installing libksba, recommended for Ruby 1.9.3 ..."
+ successfully brew install libksba
+
echo "Installing Postgres, a good open source relational database ..."
successfully brew install postgres --no-python
@@ -65,5 +49,27 @@ echo "Installing ImageMagick, good for cropping and re-sizing images ..."
echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
successfully brew install qt
+echo "Installing RVM (Ruby Version Manager) and Ruby 1.9.3, which becomes the default ..."
+ successfully curl -L https://get.rvm.io | bash -s -- --version 1.15.10 --ruby
+ successfully echo "
+# RVM
+[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
+ successfully source ~/.zshrc
+
+echo "Installing Bundler to build gem dependencies ..."
+ successfully gem install bundler -v '~> 1.2.0.rc.2' --no-rdoc --no-ri
+
+echo "Installing Rails to write and run web applications ..."
+ successfully gem install rails --no-rdoc --no-ri
+
+echo "Installing the Heroku gem to interact with the http://heroku.com API ..."
+ successfully gem install heroku --no-rdoc --no-ri
+
+echo "Installing the pg gem to talk to Postgres databases ..."
+ successfully gem install pg --no-rdoc --no-ri
+
+echo "Installing the foreman gem for serving your Rails apps in development mode ..."
+ successfully gem install foreman --no-rdoc --no-ri
+
echo "Installing the heroku-config plugin for pulling config variables locally to be used as ENV variables ..."
successfully heroku plugins:install git://github.com/ddollar/heroku-config.git

0 comments on commit 7d7b9d7

Please sign in to comment.