I was finally successful building MySQL-python after finding an upgraded version, 0.9.2, which will build with threads disabled. Is it correct that the latest fink mysql does not use the threaded libraries?
It is another matter to install because you have to figure out which python zope is using and make sure you install _mysql.so in the right place. Then there is a zope extension that also has to be installed in the right place. I don't think it would be very difficult to make this a fink binary package, and considering that both zope and mysql are already a part of fink (and the next logical step is of course to use them together) it would perhaps save a lot of fink users the trouble that I went to to get them installed. I have yet to be successful building the postgresql python extension, though, and would really like to have that, too. I have never even thought about making a fink package but would be glad to chip in if I could be of any help. I know there is an official channel for making requests for fink packages, but I thought I might mention it here to see if there was any other interest in it. Tom On 3/19/03 1:01 AM, "Tom Harris" <[EMAIL PROTECTED]> wrote: > I have tried everything I know (which is probably not much) to build > MySQL-python-0.9.0 using the libraries from fink's mysql-dev package. A > slight alteration to setup.py which is used to build and install it. I > pointed it to the /sw/include directory to find the mysql libraries there > and, thinking the compile errors might be related to the version of python > being called, I tried it with python 2.1 and then installed python 2.2 (both > under fink) but continued to get the errors I had been given with the > version that was installed with OS X in the first place. The error looks > like this. > > Can anyone give me a hint as to how I can overcome this. By the way, my goal > is to get zope talking to mysql. > > Tom > > ------------------------------- > > tom% ./setup1.py build > running build > running build_py > creating build/lib.darwin-6.4-PowerMacintosh-2.2 > copying CompatMysqldb.py -> build/lib.darwin-6.4-PowerMacintosh-2.2 > copying _mysql_exceptions.py -> build/lib.darwin-6.4-PowerMacintosh-2.2 > creating build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb > copying MySQLdb/__init__.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb > copying MySQLdb/converters.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb > copying MySQLdb/connections.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb > copying MySQLdb/cursors.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb > copying MySQLdb/sets.py -> build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb > copying MySQLdb/times.py -> build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb > creating build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > copying MySQLdb/constants/__init__.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > copying MySQLdb/constants/CR.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > copying MySQLdb/constants/FIELD_TYPE.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > copying MySQLdb/constants/ER.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > copying MySQLdb/constants/FLAG.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > copying MySQLdb/constants/REFRESH.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > copying MySQLdb/constants/CLIENT.py -> > build/lib.darwin-6.4-PowerMacintosh-2.2/MySQLdb/constants > running build_ext > building '_mysql' extension > creating build/temp.darwin-6.4-PowerMacintosh-2.2 > gcc -DNDEBUG -O3 -Wall -Wstrict-prototypes -I/sw/include/mysql > -I/sw/include/python2.2 -c _mysql.c -o > build/temp.darwin-6.4-PowerMacintosh-2.2/_mysql.o > _mysql.c:192: warning: ANSI C forbids newline in string constant > _mysql.c:193:1: warning: multi-line string literals are deprecated > _mysql.c: In function `_mysql__fetch_row': > _mysql.c:784: too many arguments to function `_PyTuple_Resize' > error: command 'gcc' failed with exit status 1 > > ---------------------------------------------------- > > __________________________________________________ > Do You Yahoo!? > Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think in ink? > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Fink-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/fink-users __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
