Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Leopard Development Environment (from clean installation)
# Replace USERNAME with your OS X short name.
# Replace PASSWORD with your MySQL root password.
# Install XCode Tools
# Install MacPorts
# Install Textmate
# Generate an SSH key
/usr/bin/ssh-add -K
# Backup original installations of Ruby, RubyGems and Rails
sudo mv /usr/bin/ruby /usr/bin/ruby.orig
sudo mv /usr/bin/ruby /usr/bin/gem.orig
sudo mv /usr/bin/ruby /usr/bin/rails.orig
# Install Ruby, RubyGems and Rails
sudo port install ruby rb-rubygems
sudo gem source -a
sudo gem install rails
# Install PostgreSQL
sudo port install postgresql83 postgresql83-server
sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb
sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'
sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql83-server.plist
createuser --superuser USERNAME -U postgres
sudo gem install postgres
# Install MySQL
sudo port install mysql5 mysql5-server
sudo -u mysql mysql_install_db5
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
sudo port install rb-mysql
/opt/local/lib/mysql5/bin/mysqladmin -u root password 'PASSWORD'
sudo gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
# Install SQLite
sudo port install sqlite3
sudo gem install sqlite3-ruby
# Install Subversion
sudo port install subversion
# Install Git
sudo port install git-core +svn
sudo gem install git
# Install Apache
sudo port install apache2
sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
sudo /opt/local/apache2/bin/apachectl -k start
sudo /opt/local/apache2/bin/apachectl -k stop
# Install Passenger
sudo gem install passenger
sudo passenger-install-apache2-module
# Extras
sudo port install wget
sudo port install ImageMagick
sudo port install sphinx
sudo gem install capistrano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.