The simplest way is to use brew:
brew install zsh
After installation, you may want to set it as your default shell by doing:
sudo echo '/usr/local/bin/zsh' >> /etc/shells
chsh -s /usr/local/bin/zsh
If you have git, and required command line tools installed you can compile and install ...