graff has asked for the wisdom of the Perl Monks concerning the following question:
Well, time to re-install DBD::Oracle. It turns out perl 5.8.6 on this bsd box was built with threading support turned off, and then it turns out that the current DBD::Oracle seems to want threads turned on. We tried installing DBD::Oracle using the existing perl, but when we ran it, it crashed with a message about how the "Oracle.so" library file contains a reference to a "pthread_kill" symbol, which is undefined at runtime. (That's probably why the build log included this little gem of wisdom: "Warning: If you have problems you may need to rebuild perl with threading enabled.")
Okay, while we're at it, why not move ahead to 5.8.7, which is the common version at the moment for all our other bsd machines. But this would be the only one with threading enabled. (At least, until we decide that all the other machines should make the same change.)
And we're talking about our web server. I would assume that every non-core module with compiled code needs to be resinstalled, which in itself is no problem, but what are the chances of some random module turning freakish, just because we now have threads enabled? (Obviously, none of our scripts are using threads at this point.)
At the very least, I'm looking for guidance on how best to approach this transition. The way it looks to me now, I'm thinking:
Of course, until that all pans out (or as long as it doesn't), DBI to oracle8 is broken on this machine. (Luckily, it's not in the "critical path".) All suggestions and warnings are welcome.- build 5.8.7 with thread support but don't install it - use the CPAN autobundle from the current 5.8.6 to fill in the non-core modules, including DBI - do our best to install DBD::Oracle on 5.8.7, even though this perl isn't fully "installed" the way that the DBD::Oracle readme says it should be - try a bunch of existing apps, including DBI access to oracle8, and assuming they work, do "make install" for 5.8.7
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DBD::Oracle and threading on a web server
by perrin (Chancellor) on Mar 03, 2006 at 03:23 UTC | |
Re: DBD::Oracle and threading on a web server
by BrowserUk (Patriarch) on Mar 03, 2006 at 04:53 UTC | |
Re: DBD::Oracle and threading on a web server
by tweetiepooh (Hermit) on Mar 03, 2006 at 11:16 UTC |