AFP548

Install MySQLdb on Mac OS X 10.4

Hello, I'm trying to install MySQLdb for a Python app I wrote on a Mac OS X Server 10.4. I installed it on my Mac OS X 10.4 client without problems, but I had MySQL Server 5.0 installed on it. On the OSX Server 10.4, there is no MySQL server installed on it. My app will be connected to a remote MySQL server. So, I want to make my MySQLdb using the built-in MySQL client that come with the OS. When I try to build it, the buid fails and I receive this error : [quote]running build running build_py copying MySQLdb/release.py -> build/lib.darwin-8.4.0-Power_Macintosh-2.3/MySQLdb running build_ext building '_mysql' extension gcc -Wl,-F. -Wl,-F. -bundle -undefined dynamic_lookup build/temp.darwin-8.4.0-Power_Macintosh-2.3/_mysql.o -L/usr/lib/mysql -lmysqlclient_r -lz -lm -o build/lib.darwin-8.4.0-Power_Macintosh-2.3/_mysql.so ld: warning unknown MACOSX_DEPLOYMENT_TARGET environment variable value: 10.4 ignored (using 10.1) ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1 error: command 'gcc' failed with exit status 1 [/quote] Anyone have an idea ? Thanks.
Exit mobile version