forked from diaspora/diaspora
-
Notifications
You must be signed in to change notification settings - Fork 1
Installing on Mac OS X
gthole edited this page May 31, 2012
·
9 revisions
These instructions are for Mac OS X 10.6 (Snow Leopard).
Install Homebrew and then come back here.
To install build tools, you need to download and install Xcode. It's a large download; it also comes on your OS X DVD.
To install MySQL, run the following:
brew install mysql
Set it up to run as your user:
unset TMPDIR
sudo mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
Add it to launchctl so it will start automatically:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mysql/5.5.14/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
Now mysql is running, and you have a user named root with no password.
To install ImageMagick, run the following:
brew install imagemagick
To install Git, run the following:
brew install git
To install Redis, run the following:
brew install redis
RubyGems comes preinstalled. However, you might need to update it for use with the latest Bundler. To update RubyGems, run
sudo gem update --system
To install Bundler, run the following:
sudo gem install bundler