Create dev environment on Snow leopard

My MBA 11inch is now under repair. So I have to setup my iMac instead.

Install Xcode

Insert Snow leopard install DVD into the Mac and click "Option install" -> "Xcode". Then installer starts.

Install Mac Ports

Go to The MacPorts Project -- Download & Installation. Download MacPorts-2.0.3-10.6-SnowLeopard.dmg and doble click it.

Write below on the ~/.bach.

export PATH=/opt/local/bin:/opt/local/sbin/:$PATH
export MANPATH=/opt/local/man:$MANPATH
$ source ~/.bashrc
$ echo $PATH
$ man port
$ port version
Version: 2.0.3

Update Macports itself.

$ sudo port -d selfupdate
$ sudo port -d sync

Install Git

Go to Google Code. Google Code Archive - Long-term storage for Google Code Project Hosting.. Download git-1.7.9.1-intel-universal-snow-leopard.dmg. After install it, need to reboot terminal.

$ which git
$ git --version
git version 1.7.9.1
$ man git