Skip to content

Instantly share code, notes, and snippets.

@devopsmariocom
Created October 10, 2013 17:47
Show Gist options
  • Save devopsmariocom/6922563 to your computer and use it in GitHub Desktop.
Save devopsmariocom/6922563 to your computer and use it in GitHub Desktop.
* Wipe current rvm and install new one * Install Ruby 1.8.6 * Install MySQL * Install MongoDB * Install Memcached * Install supporting libraries
#!/bin/sh
# Install rvm
rvm implode # will remove current rvm
rm ~/.rvmrc
\curl -L https://get.rvm.io | bash
source ~/.rvm/scripts/rvm
# Install ruby
rvm install ruby-1.8.6-head --rubygems 1.3.5
chown -R $USER ~/.rvm
rvm use ruby-1.8.6-head@rails123 --create
rvm alias create default ruby-1.8.6-head@rails123
patch ~/.rvm/rubies/ruby-1.8.6-head/lib/ruby/1.8/logger.rb < bin/install/patches/fix_logger.patch # fix logger issue by patch
# Install mysql
brew install mysql
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
# Install mongodb
brew install mongodb
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
# Install memcached
brew install memcached
ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
# Install supporting libraries
brew install imagemagick
brew install ghostscript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment