(Tried following of https://gist.github.com/ligthyear/5188195, where several errors were experienced. Therefore, write down my manual try and test sequence, which led a successful testing environment.)
Ubuntu 12.04 Precise, x86-64
You can test your platform with the follow command lines:
$ lsb_release -a
$ uname -a
(I have used Snaptic Package Manger to install mysql-server mysql-client before)
$ sudo apt-get install libmysqlclient-dev
This will resolve issue when you try to pip install mysql-python without this installation
$ mkdir askbot_on_bs
$ cd askbot_on_bs
$ git init .
create .gignore and add the following: .pyc AWS-ElasticBeanstalk-CLI bin/ lib/ man/ src/ include/ debug.sqlite
$ git add .
$ git ci -m"initial gitignore"
$ virtualenv .
$ source bin/activate
$ pip install Django==1.4.5 mysql-python
$ pip install -e git+git://github.com/ASKBOT/askbot-devel.git#egg=askbot
$ askbot-setup