Update:
Commenter MarkR made a great point: if possible, use some packaging tools, to try to maintain proper dependencies, to the extent that is possible. Install from the source should be Plan B. So, try yum install MySQL-python first.
This is mostly for my own future reference. It’ll be icing on the cake if it helps you!
This is geared for CentOS or Red Hat. Use apt-get or other packaging tools for different flavours of Linux.
1. Get Python module setuptools called easy_install. I love easy_install, by the way,
sort of like CPAN for Perl modules;
2. To install MySQLdb package, you would think easy_install
MySQLdb would do. But that is not the case. I hope the developer
would fix that. Instead, you need:
easy_install MySQL-python
3. If you have build errors, you may need:
yum install python-devel or yum …