Skip to content

Instantly share code, notes, and snippets.

@caseywatts
Created June 19, 2012 21:38
Show Gist options
  • Save caseywatts/2956692 to your computer and use it in GitHub Desktop.
Save caseywatts/2956692 to your computer and use it in GitHub Desktop.
Bash Script for OS X RoR Setup - STC Summer 2012
### Install XCode
# Follow Instructions at https://developer.apple.com/xcode/
# In Xcode preferences, enable command line tools
## rbenv for ruby compiling and managing versions
## https://github.com/sstephenson/rbenv/
brew install rbenv
brew install ruby-build
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
## close and reopen terminal
#Install ruby! Current is 1.9.3-p194 as of Jun 20, 2012
rbenv install 1.9.3-p194
#Set up git
#http://help.github.com/set-up-git-redirect/
### Old Rubies ###
### To install older rubies (<=1.8.7) you must install GCC from the source
### (XCode's GCC is too new for them)
#https://github.com/kennethreitz/osx-gcc-installer/downloads
### Postgres ###
#http://www.postgresql.org/download/macosx/
### RMagick ###
### isn't necessary for everybody
### Installing RMagick and DocSplit is tricky
#Follow http://stackoverflow.com/questions/10063051/bundle-cant-install-rmagick-gem-on-mac-osx-10-7
#and http://documentcloud.github.com/docsplit/
brew install ghostscript
brew install imagemagick
# graphicsmagick is being cranky https://github.com/mxcl/homebrew/issues/6881
brew install --use-gcc graphicsmagick
brew install poppler
brew install tesseract
# Install OpenOffice (not LibreOffice)
#www.openoffice.org/download/index.html
mdfind MagickWand.h
#should respond with something like:
#/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick/wand/MagickWand.h
#So paste part of the path in like this:
#/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick/
C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick/ gem install rmagick
### Installing docsplit-paperclip-processor has a dependency
brew install libmagic
### Install postgres http://stackoverflow.com/questions/2271069/installing-postgresql-on-osx-for-rails-development
@sherwinyu
Copy link

what about zsh?!

@caseywatts
Copy link
Author

lol should I be indoctrinating everyone early?

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