Ruby development setup for clean Mountain Lion install

I bought a new samsung ssd and installed mountain lion from scratch the other day.  Here's my notes on what I did to set it up for work.

In chronological order:

Change Apple's nazi/microsoft-like default "security" setting to "Anywhere": (this makes me want to get rid of my macbook and get a good sony for linux)

Apple, this is the way to the dark side.

Install Xcode from app store
Run Xcode -> preferences( CMD + comma ) -> downloads -> Command Line Tools -> Install

then execute:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

version 2.7.2+ from here:
sudo ln -s /opt/X11 /usr/X11

/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
At this point you should be able to run "brew doctor" and have it say "Your system is raring to brew.", ok cool

I usually place "/usr/local/bin" at the TOP of the /etc/paths file - This has solved some problems in the past with postres and other conflicting apple-provided binaries.


curl -L https://get.rvm.io | bash -s stable --ruby

close terminal, open a new one

rvm use --default 1.9.3

brew install git
brew install imagemagick
brew install macvim
ImageMagick will install lots of dependencies, everything should compile just fine.

curl get.pow.cx | sh

At the time of this writing postgres does not install 'out of the box' with homebrew.  Given the continual problems I've encountered with compiling my own postgres via homebrew I'm going to try http://postgresapp.com/ instead.
Install it to /Applications, and just like the documentation says, add the app bin dir to your PATH:

So by default mt. lion gives you ~/.bash_login, which at this point only has the RVM line.  I edited that file, resulting in the following:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Run it!

I then clicked the elepant icon in my menu bar and set it to "Automatically start at login" and not show documentation at start.

I think I'm going to like this.  THANKS HEROKU!!

This is all I'm writing right now.  I'll get into my vim setup sometime this weekend.

No comments:

Post a Comment