This guide assumes a fresh install of Mac OSX 10.6 Snow Leopard.
See https://github.com/mxcl/homebrew/wiki/Installation
- Install xcode (with X11)
- run this simple script:
ruby -e "$(curl https://gist.github.com/raw/323731/install_homebrew.rb)"
- edit PATH (e.g in ~/.bash_profile):
export PATH=/usr/local/bin:$PATH
(remember to logout and login again for the changes in .bash_profile to get picked up)
Before installing stuff with pip make sure you are using the correct version.:
pip --version
should return something like:
pip 0.8.2 from /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/pip-0.8.2-py2.7.egg (python 2.7)
some useful packages:
brew install python brew install wget git hub brew install jpeg lcms pip pip install mercurial brew install vcprompt pip install virtualenv brew install virtualenvwrapper brew install bash-completion pip install ipython brew install gettext
Note
checkout http://pypi.python.org/pypi/Pillow as a possible alternative
use this version of pil (http://dist.repoze.org/PIL-1.1.6.tar.gz) install with FREETYPE_ROOT = ("/usr/x11/lib","/usr/x11/include",)
in setup.py. Then:
python setup.py build_ext -i python setup.py install
since this gets installed with the PIL prefix, add a PIL.pth file in /Library/Python/2.x.x/site-packages
containing PIL-1.1.6-py2.6-macosx-10.6-universal.egg/PIL
aggdraw provides much better anti-aliasing than PIL . And lots of other stuff.
use this version: http://bitbucket.org/2degrees/aggdraw-64bits/src
make sure to use python setup.py build_ext -i
and then python setup.py install
enabling freetype does not seem to work (probably broken c-code)
brew install mysql mysql_install_db cp /usr/local/Cellar/mysql/x.x.x/com.mysql.mysqld.plist ~/Library/LaunchAgents launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist brew install mysql-connector-c pip install mysql-python
brew install postgresql initdb /usr/local/var/postgres launchctl load -w /usr/local/Cellar/postgresql/x.x.x/org.postgresql.postgres.plist pip install psycopg2
Starting and stopping postgres directly:
pg_ctl -D #{var}/postgres -l #{var}/postgres/server.log start pg_ctl -D #{var}/postgres stop -s -m fast
Creating an inital user:
createuser # admin / empty password
sudo brew install ssh-copy-id