On my Mac running Mac OS X 10.5.8, I have the latest XCode tools and Python 2.5 installed. I installed MySQL 5.1 from the package version. I also got the MySQL-python-1.2.3c1.tar.gz which Mac unzipped in the downloads folder.
To get installation instructions I read the following blog entry:
MySQL, Python and MacOS X 10.6 (Snow Leopard)
http://blog.some-abstract-type.com/2009/09/mysql-python-and-mac-os-x-106-snow.html
Since I don't know much about Unix, I don't understand the instructions provided here.
shell> PATH="/usr/local/mysql/bin:$PATH"
shell> tar xzf MySQL-python-1.2.3c1.tar.gz
shell> cd MySQL-python-1.2.3c1
shell> ARCHFLAGS="-arch x86_64" /usr/bin/python setup.py build
shell> /usr/bin/python setup.py install
I don't know whether the $PATH has already been set.
Since MySQL-python-1.2.3c1.tar.gz has already been unzipped; there is a folder MySQL-python-1.2.3c1 in the downloads folder, I assume I don't have to run shell> tar xzf MySQL-python-1.2.3c1.tar.gz
MySQL-python-1.2.3c1 resides in the download folder so shell> cd MySQL-python-1.2.3c1 doesn't seem to make sense. Where should the folder go?
shell> ARCHFLAGS="-arch x86_64" /usr/bin/python setup.py build
shell> /usr/bin/python setup.py install
I have no idea what the two lines of code above do. I downloaded the MySQL Installer Package for Mac OS X 10.5 x86 not x86-64.
Could you please provide me with more detailed instructions on how to get MySQLdb installed.
Kind regards,
Annet