Skip to content

Instantly share code, notes, and snippets.

@dlapiduz
Created August 20, 2009 23:29
Show Gist options
  • Save dlapiduz/171513 to your computer and use it in GitHub Desktop.
Save dlapiduz/171513 to your computer and use it in GitHub Desktop.
System Setup
- Install Xcode http://developer.apple.com/mac/scripts/downloader.php?path=/Developer_Tools/xcode_3.1.3_developer_tools/xcode313_2736_developerdvd.dmg
- Rename mac ruby:
sudo bash
mv /usr/bin/ruby /usr/bin/ruby.orig
mv /usr/bin/gem /usr/bin/gem.orig
mv /usr/bin/rails /usr/bin/rails.orig
logout
- Install Macports: http://www.macports.org/install.php
- Install Ruby and Ruby Gems:
sudo port install ruby rb-rubygems
- Install Mysql:
sudo port install mysql5
sudo port install mysql5-server
sudo port install rb-mysql
sudo ln -s /opt/local/var/run/mysql5/mysqld.sock /tmp/mysql.sock
sudo mysql_install_db5 --user=mysql
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
- Install other ports:
sudo port install git-core ffmpeg ImageMagick memcached openssh openssl sphinx
- Install Rails:
sudo gem install rails
- Install other gems:
sudo gem install capistrano authlogic aws-s3 bluecloth chronic geokit gruff mysql RedCloth ruby-debug twitter rmagick passenger
- Install Passenger
sudo passenger-install-apache2-module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment