![]() With this Python I reinstalled MySQLdb, which now compiled to the 64 bit version. After restarting the Terminal, Python referred to the "system" version of Python again (the one that shipped with Snow Leopard) and that was the 2.6.1 64 bit Python. bash_profile so that the "Python" command would not point to the 32 bit Python anymore. Solution: I removed the $PATH settings from my. My Leopard installed Python was a 32 bit version and I suspected that this was the reason for me being still "stuck" with a broken setup. Hopefully, I had assumed that Snow Leopard updated this Python installation (which was not the "System" installation) but it turned out that it did not. I upgraded my Python installation on Leopard to Python 2.6.1 because I did not want to work with the older Python version that shipped with Leopard. From the message that MySQLdb reported when imported in the Python shell, I understood that it was still running the 32 bit version (seeing the i386 in the site-packages name of MySQLdb during the install, also alerted me to this). Unfortunately that did not change anything for me. Now I finally got the MySQLdb install to complete. bash_profile: export CC="gcc-4.0"Īdding the Mac OS X 10.4 option from the Xcode installer (from the DVD) was also a necessary step. One possible solution might have been adding to my. Eventually I got this working, but I am not even sure how. However, it turned out that GCC has been updated by Apple and somehow my MySQLdb installer did not seem appreciate that. You can download this from Apple, but I remember spotting it on the Snow Leopard DVD (Optional Installs). You can install Xcode (Apple's developer software) for this. Solution: First, make sure you have the GCC compiler installed. The installer was not too happy however and kept throwing error messages at me. The first thing I tried was simple reinstalling MySQLdb (see Installing MySQLdb for more information). Since I installed (compiled) MySQLdb for the 32 bit version of MySQL, I had a hunch this one was not going to work anymore either. This Python DB API is needed to let Python (and Django) interact with MySQL properly. Solution: Download the 64 bit version of MySQL (there are Mac OS X packages (get the one for 10.5 - x86_64) on MySQL's website).įor more information see: Upgrading to Snow Leopard (Ruby on Rails) and Compiling MySQL on Snow Leopard - Hivelogic (if you like to go Pro). I turned out that Snow Leopard requires a 64 bit version of MySQL. I could not get MySQL to start from the PrefPane setting (under System Preferences). When I tested one of my Django projects, the first thing I noticed was that MySQL was not working properly anymore. ![]() The only worries I had about this update was my Django developer setup: Python, MySQL and some Python modules/libraries. Apart from a few programs not working anymore, most notably Cyberduck (which needed updating to a newer version), I did not notice any problems. I let Snow Leopard ( NY Times review) in into my house last friday (August 28th, 2009) and the upgrade process (from Leopard) went really smoothly. ![]() Still, I thought it might be useful to share my experiences with you. I am no expert at this kind of thing whatsoever. After spending an considerable amount of time installing MySQLdb on Mac OS X 10.5 Leopard, I had to repeat a similar exercise today.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |