| [reply] |
Thanks for yr reply.
I have installed DBD::myql package; otherwise I wdnt be able to connect from the command line.
The problem only occurs on my local web server in Mac OS X 10.5.2. On my other Mac running 10.3 the code runs fine, as it also does on my remote site.
Regards,
Sarpedon Jones
| [reply] |
If it works from the command line, and doesn't from Apache, it's most likely an issue with the pathing -- you mention you have two different versions of Perl installed. (5.8 and 5.10) -- can they both see the module from the command line?
Also, are you using a full path in your shebang line, or just '#!perl' ? If the later, try changing it to a full path, so you know which version of perl it's trying to run. After that, the only thing I can think of is to write a CGI that dumps the contents of '@INC', and make sure the correct include directory is there ... if not, add it with 'use lib'
| [reply] |
Thanks for yr reply.
The shebang is ok & the @INC is set up to point at MySQL bin etc.
I feel the problem may be w/ Apache2 & MySQL.
Regards,
Sarpedon Jones
| [reply] |