Gossamer Forum
Home : General : Internet Technologies :

Error installing mysql-python 1.2.2 on mac os x 10.4.9

Quote Reply
Error installing mysql-python 1.2.2 on mac os x 10.4.9
Hi all,

I trie to install mysql-python 1.2.2 but I have a lot of errors. I have install MySQL 5.0.45 and python 2.5.1.I use Mac OS X 10.4.9 and when I trie to build mysqldb i have the following error:

>sh: line 1: mysql_config: command not found
>Traceback (most recent call last):
>File "setup.py", line 16, in <module>
>metadata, options = get_config()
>File "/Users/alessandrocensoni/Desktop/MySQL-python-1.2.2/setup_posix.py", line 43, in get_config
>libs = mysql_config("libs_r")
>File "/Users/alessandrocensoni/Desktop/MySQL-python-1.2.2/setup_posix.py", >line 24, in mysql_config
>raise EnvironmentError, "%s not found" % mysql_config.path
>EnvironmentError: mysql_config not found

I trie to install the mysqldb but I have however errors.
I don't know where I have to do the change suggested in various sites and in a post in this site relative to:

return popen(“mysql_config --%s” % what)
to
return popen(“/usr/local/mysql/bin/mysql_config --%s” % what)


In the site.cfg I don't know what I have to change. I also trie to edit the setup.py of mysqlpython-1.2.1_p2 with the previous line but I have the following error:

>File "setup.py", line 26
> f = popen(“/usr/local/mysql/bin/mysql_config --%s” % what)
> ^
>SyntaxError: invalid syntax

Can somebody help me?

Thanks a lot
Alex
Subject Author Views Date
Thread Error installing mysql-python 1.2.2 on mac os x 10.4.9 AlexC82 10160 Oct 30, 2007, 5:03 AM
Thread Re: [AlexC82] Error installing mysql-python 1.2.2 on mac os x 10.4.9
Andy 9921 Oct 30, 2007, 7:22 AM
Post Re: [Andy] Error installing mysql-python 1.2.2 on mac os x 10.4.9
AlexC82 9886 Oct 30, 2007, 7:50 AM