Gcc Error When Installing Mysql_python 1.2.2 (mac Os 10.6 Snow Leopard)
I'm trying to install MySQL_python 1.2.2 (I specifically need this version, not the current 1.2.3) on Snow Leopard, and getting this error below. Command to install: pip install -
Solution 1:
A quick google search yielded this answer:
To get mysqldb working on leopard I found I had to edit _mysql.c and edit out the lines:
#ifndef uint#define uint unsigned int#endif
I also had to edit site.cfg and mark threadsafe to False.
After doing this, I managed to get MySQLdb to install, great! Not so fast, there was yet another problem:
Referenced from: .../_mysql.so Reason: image not found
The solution:
sudo ln -s /usr/local/mysql/lib/ /usr/local/mysql/lib/mysql
Solution 2:
As the error says, things have been redefined. I've gotten around this in the past by commenting out the offending declarations in the source of the library being build. That solution however has some obvious problems...
Post a Comment for "Gcc Error When Installing Mysql_python 1.2.2 (mac Os 10.6 Snow Leopard)"