Skip to content

Instantly share code, notes, and snippets.

@ErneX
Created July 26, 2012 01:42
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ErneX/3179774 to your computer and use it in GitHub Desktop.
Save ErneX/3179774 to your computer and use it in GitHub Desktop.
OS X Mountain Lion clean install & Rails
OS X Mountain Lion clean install Rails development environment setup using MySQL, imagemagick, homebrew and rvm. Rough steps, your mileage or your needs may vary:
- Install XCode from the App Store.
- Launch XCode > Preferences > Downloads > Install the Command Line Tools
- Install XQuartz version 2.7.2 http://xquartz.macosforge.org/trac/wiki/X112.7.2
- Install git, I used git-osx-installer version 1.7.11.3 http://code.google.com/p/git-osx-installer/downloads/list
- Install Ruby 1.9.3 with rvm, run this command on a terminal and follow the instructions: curl -L https://get.rvm.io | bash -s stable --ruby
- Install MySQL using the DMG installer, I used version 5.1.63 found here http://dev.mysql.com/downloads/mysql/5.1.html I use this to get the files needed for the mysql2 gem to install, I don't install the prefpane or the init script since I use MAMP as my MySQL server on my Mac.
- Install homebrew: https://github.com/mxcl/homebrew/wiki/installation
- Install ghostscript, from a terminal: brew install ghostscript
- Install imagemagick, from a terminal: brew install imagemagick
This was enough for me, I ran bundle from a project I'm working on and all the gems downloaded properly including mysql2 and rmagick.
@hechien
Copy link

hechien commented Jul 26, 2012

wow ... Thanks for sharing!

@tdm00
Copy link

tdm00 commented Aug 16, 2012

Just curious, why do you install MySQL using the DMG rather then using brew install mysql?
I personally don't know what advantages one has over the other, I'm just curious as to why you choose DMG vs homebrew.

@ErneX
Copy link
Author

ErneX commented Feb 12, 2013

@talltroym guess I was used to do it that way, it does makes sense that having installed homebrew already use it to install mysql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment