Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 19178 invoked from network); 13 Dec 2006 15:52:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 15:52:56 -0000 Received: (qmail 8203 invoked by uid 500); 13 Dec 2006 15:52:53 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 8190 invoked by uid 500); 13 Dec 2006 15:52:53 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 8179 invoked by uid 99); 13 Dec 2006 15:52:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 07:52:53 -0800 X-ASF-Spam-Status: No, hits=4.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.49.21] (HELO web52911.mail.yahoo.com) (206.190.49.21) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 13 Dec 2006 07:52:40 -0800 Received: (qmail 43717 invoked by uid 60001); 13 Dec 2006 15:52:18 -0000 Message-ID: <20061213155218.43715.qmail@web52911.mail.yahoo.com> DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=NjlASH+vy3Wytms0A9DYdkUHsO5KbLmT914l+Aux0zl49drjuSykQ5v1HE457M3MyoPGQULrASxzWwS10in3myOHruI2/YD1x7OKWmY0HmG0H3JZAbH/ed+4gnqDGZzrDC7DpJmUAU5jWamIGY7gz+vPpns3IWkpe1LK/tSMIZM=; X-YMail-OSG: gS4TvOYVM1nACDaiN._BXZc7QFWtwmJzlJvWDdcgvs_CBGcJORaIUZ6hhd0mZxzA6fQx09uWcFMn2NhJP9tZPunwwx3LwcBABzo5VxAPnTZPawWA7g5Gog89.NN7uICOvWU11Q3X6A.q3NWls6vx_b73WSPDkOYk6aa4RJztayYm78WfbTIa_3BiAX_RJ0vqpmm7FpKhjpD5Yl8- Received: from [207.120.254.15] by web52911.mail.yahoo.com via HTTP; Wed, 13 Dec 2006 07:52:18 PST Date: Wed, 13 Dec 2006 07:52:18 -0800 (PST) From: Jim Goh To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-509207268-1166025138=:42540" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] perl and mysql issue --0-509207268-1166025138=:42540 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I have perl 5.6.1 and mysql 5.0.24 installed and the following perl script works fine from command line, but not working when I run from the IE browser: #!/usr/local/bin/perl use DBI; use CGI qw(:standard); use CGI::Carp 'fatalsToBrowser'; use strict; print header; print start_html; my $docID; my $docfile = "test.doc"; my $docdesc = "this is test"; my $last_update; my $dbh = DBI->connect("dbi:mysql:dbname", "username", "password" ) or &dienice("Can't connect to database: $DBI::errstr"); my $sth = $dbh->prepare("insert into test_tbl values(?,?,?,?)") or &dbdie; $sth->execute($docID, $last_update, $docfile, $docdesc) or &dbdie; print end_html; and here is the error i got from browser after ran it: Software error: install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.15: open failed: No such file or directory at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206. at (eval 10) line 3 Compilation failed in require at (eval 10) line 3. Perhaps a required shared library or dll isn't installed where expected at /usr/local/apache2/cgi-bin/testdb.pl line 15 Thanks all for your help! --------------------------------- Any questions? Get answers on any topic at Yahoo! Answers. Try it now. --0-509207268-1166025138=:42540 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi,
 
I have perl 5.6.1 and mysql 5.0.24 installed and the following perl script works fine from command line, but not working when I run from the IE browser:
 
#!/usr/local/bin/perl
use DBI;
use CGI qw(:standard);
use CGI::Carp 'fatalsToBrowser';
use strict;
 
print header;
print start_html;
my $docID;
my $docfile = "test.doc";
my $docdesc = "this is test";
my $last_update;
my $dbh = DBI->connect("dbi:mysql:dbname", "username", "password" )
        or &dienice("Can't connect to database: $DBI::errstr");
my $sth = $dbh->prepare("insert into test_tbl values(?,?,?,?)") or &dbdie;
$sth->execute($docID, $last_update, $docfile, $docdesc) or &dbdie;
print end_html;
and here is the error i got from browser after ran it:
 

Software error:

install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.15: open failed: No such file or directory at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.   at (eval 10) line 3  Compilation failed in require at (eval 10) line 3.  Perhaps a required shared library or dll isn't installed where expected   at /usr/local/apache2/cgi-bin/testdb.pl line 15  
Thanks all for your help!


Any questions? Get answers on any topic at Yahoo! Answers. Try it now. --0-509207268-1166025138=:42540--