Created
October 10, 2013 17:47
-
-
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
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
#!/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