[prev in list] [next in list] [prev in thread] [next in thread] 

List:       msql-mysql-modules
Subject:    Problems to use with Apache
From:       Michael Widenius <monty () monty ! pp ! sci ! fi>
Date:       1998-10-23 22:56:35
[Download RAW message or body]

>>>>> "info" == info  <info@edoc.co.za> writes:

info> Hi,
info> I have a perl script running perfectly when I use it as ./myscript.pl

info> The script reads data from a mysql database.

info> When I call it as a cgi from a WWW-form, I get the following errors:

info> (from the httpd.error_log)

info> [Fri Oct 23 17:04:11 1998] [error] install_driver(mysql) failed: Can't 
info> load '/usr/lib/perl5/site_perl/i586-linux/auto/DBD/mysql/mysql.so' 
info> for module DBD::mysql: Unable to resolve symbol at 
info> /usr/lib/perl5/i586-linux/5.00404/DynaLoader.pm line 166.

info>  at (eval 7) line 2

info> 	DBI::install_driver('DBI', 'mysql') called at 
info> /usr/lib/perl5/site_perl/DBI.pm line 348
info> 	DBI::connect('DBI', 'DBI:mysql:medpages', 'wwwrun', '') called at 
info> /usr/local/httpd/cgi-bin/trek.pl line 62
	
info> Apache::ROOT::cgi_2dbin::trek_2epl::handler('Apache=SCALAR(0x
info> 81657bc)') called at /usr/lib/perl5/site_perl/Apache/Registry.pm line 
info> 135
info> 	eval {...} called at /usr/lib/perl5/site_perl/Apache/Registry.pm 
info> line 135
info> 	Apache::Registry::handler('Apache=SCALAR(0x81657bc)') 
info> called at -e line 0
info> 	eval {...} called at -e line 0


info> I'm sure somebody else must have encountered this problem 
info> before. :-))

Hi!

The problem is probably that your cgi can't find the libmysqlclient.so 
library!

Copy this to /lib or /usr/lib and everything should work!

The other option is to link MySQL modules with the static
libmysqlclient library!

Regards,
Monty
-----------------------------------------------------------
Send a mail to mdomo@tcx.se with
unsubscribe msql-mysql-modules your@subscription.address
in the body of the message to unsubscribe from this list.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic