Created
November 18, 2013 14:30
-
-
Save dblooman/7528700 to your computer and use it in GitHub Desktop.
install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homebrew | |
| Open Terminal.app/iTerm.app and enter: | |
| ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) | |
| It will ask for your password at some point, get EUP! | |
| If you're on OS X 10.7 or 10.8, install the Apple GCC package from Terminal.app/iTerm.app: | |
| brew tap homebrew/homebrew-dupes | |
| brew install apple-gcc42 | |
| Symlinks | |
| In /usr/local/bin, a simple ls *4.2 will list 6 commands, symlinks these to the same place but without the 4.2 suffix. I.e. | |
| ln -s /usr/local/bin/gcc-4.2 /usr/local/bin/gcc | |
| Additional symlinks needed: | |
| ln -s /usr/local/bin/gcc-4.2 /usr/local/bin/cc | |
| ln -s /usr/local/bin/gcc-4.2 /usr/local/bin/g++ # gem unf_ext uses g++ | |
| Homebrew packages | |
| You need the following packages from Homebrew: | |
| chruby | |
| brew install chruby | |
| sudo mkdir -p /opt/rubies | |
| sudo chown `whoami` /opt/rubies | |
| You'll need to add these to your profile (~/.bash_profile or ~/.zshrc): | |
| source /usr/local/opt/chruby/share/chruby/chruby.sh | |
| source /usr/local/opt/chruby/share/chruby/auto.sh | |
| ruby-build | |
| brew install ruby-build | |
| Installing ruby 1.8.7-p302 | |
| ruby-build 1.8.7-p302 /opt/rubies/1.8.7-p302 | |
| After ruby 1.8.7-p302 is installed, open a new shell/tab so that chruby loads up the correct ruby before you pull down the dependencies. | |
| node | |
| brew install node | |
| Other useful utilities that make managing your Mac much easier: | |
| brew install wget tree watch htop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment