However, the DBD::MySQL man page says

"The obvious question is: Are the C libraries thread safe? In the case of MySQL the answer is "mostly" and, in theory, you should be able to get a "yes", if the C library is compiled for being thread safe (By default it isn't.) by passing the option -with-thread-safe- client to configure. See the section on How to make a threadsafe client in the manual."

so you might try a couple of things. First, rebuild DBD::MySQL with that option; second (and rather more tedious), download the perl source, build a non-threaded perl (the default) and try that.

Thank you Dominic. I have submitted a bug report to cpan.org with the additional information you suggested:

http://rt.cpan.org/Public/Bug/Display.html?id=21946

I now want to try with the -with-thread-safe-client option, but I don't know how to add it. I tried with:

perl Makefile.PL -with-thread-safe-client
result: Unknown option: with-thread-safe-client

perl Makefile.PL --with-thread-safe-client
result: Unknown option: with-thread-safe-client

perl Makefile.PL --cflags=-with-thread-safe-client
result: OK, but make fails:
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option `-with-thread- safe-client'

perl Makefile.PL --cflags=--with-thread-safe-client
result: OK, but make fails:
unrecognized command line option "-fwith-thread-safe-client"

Do you know how to add it?

Regards,

Gustavo Delfino

Reply via email to