Pivotal labs provides a script to automatically install everything using soloist: some mac osx defautls: https://github.com/mathiasbynens/dotfiles/blob/master/.osx the following is adapted from http://blog.therubymug.com/blog/2010/05/20/the-install-osx.html Step 0:- clean up .bash_profile & .bashrc from mac ports stuff Prerequisite OS X Apps:- Chrome Snow Leopard Samba Fix2
Install homebrewsudo mkdir /usr/local OR if ou already have an /usr/local directory, run: sudo chmod -R +w /usr/local/
Get git 1 brew install git Install utilities dotfiles, dev folderhttp://github.com/21croissants/dotfiles Remove system gems
see http://rvm.beginrescueend.com/rvm/install/ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) -To use ZSH completion for RVM, you can follow these steps: mkdir -p $HOME/.zsh/rvm cp $rvm_path/scripts/zsh/Completion/_rvm $HOME/.zsh/rvm Copy the following before oh-my-zsh loads: # rvm auto completion fpath=(~/.zsh/rvm $fpath) and add gems such as: rake mongrel awesome_print ruby-debug looksee wirble awesome_print rak hirb launchy check out http://rbjl.net/40-irbtools-release-the-power-of-irb which takes care of most of them Install openssl1 rvm package install openssl Install the rubies to your heart’s content
MySQL1 brew install mysql # Follow instructions
launchctl load ~/Library/LaunchAgents/com.mysql.mysqld.plist |
1 2 | sudo sysctl -w kern.sysv.shmall=65536 sudo sysctl -w kern.sysv.shmmax=16777216 |
Install global gems
http://github.com/oggy/looksee, awesome_print
1 2 3 4 5 6 7 8 9 | for x in $(rvm list strings) do rvm use $x@global && gem install mysql --\ --with-mysql-dir=/usr/local \ --with-mysql-config=/usr/local/bin/mysql_config rvm use $x@global && gem install mongrel rake rvm use $x@global && gem install ruby-debug looksee wirble awesome_print rak done |
Note: mongrel did not successfully installed on ruby 1.9.2 :-(
This works:
gem install mongrel --pre
Growl
1 2 3 4 5 6 7 8 9 10 11 12 | cd ~/Downloads wget http://growl.cachefly.net/Growl-1.2.dmg open Growl-1.2.dmg cd /Volumes/Growl-1.2/Extras/growlnotify/ # Don't use the install shell script # Use the following: mkdir -p /usr/local/bin echo "Creating /usr/local/bin" mkdir -p /usr/local/man/man1 echo "Creating /usr/local/man/man1" cp growlnotify /usr/local/bin/growlnotify cp growlnotify.1 /usr/local/man/man1/growlnotify.1 |
brew install imagemagick (get my commit http://github.com/21croissants/homebrew/commit/08d9d5b2cdadb5d0babac5547f020339fc1d3ea8 to fix the formula before)
brew install memcached
You can enabled memcached to automatically load on login with:
cp /usr/local/Cellar/memcached/1.4.5/com.danga.memcached.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.danga.memcached.plist
Or start it manually:
/usr/local/bin/memcached
Add "-d" to start it as a daemon.
mongo : http://blog.nofail.de/2010/07/mongo-ruby-driver-mongoid-and-mongomapper/
node : http://www.olympum.com/internet/why-node-js-matters/