MySQL Forums
Forum List  »  Connector/Python

SUCCESS!!
Posted by: Paul Morel
Date: September 23, 2009 01:01PM

Finally found a solution that works. The solutions shown in the link below works up to a point but there is a small tweak required. Follow these instructions up to the point where you run the /usr/bin/python setup.py build command.

http://blog.some-abstract-type.com/2009/09/mysql-python-and-mac-os-x-106-snow.html

Once you run the build command you are going to get an error complaining about the mysql_config file. You need to edit the setup_posix.py file. Change line 26 from:
mysql_config.path = "mysql_config"

to:
mysql_config.path = "/usr/local/mysql-5.1.39-osx10.5-x86_64/bin/mysql_config"

Now try the /user/bin/python setup.py build command again. It should build this time. Now you can follow the rest of the steps.

Options: ReplyQuote


Subject
Written By
Posted
SUCCESS!!
September 23, 2009 01:01PM
September 24, 2009 01:21AM
September 24, 2009 12:20PM
October 17, 2009 10:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.