Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 28th, 2002, 03:09 PM
drGiggles drGiggles is offline
nerd
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: NJ
Posts: 101 drGiggles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 30 m 37 sec
Reputation Power: 7
dbi error

hi

i recently got mysql up and running but am having problems getting perl dbi to work and am hoping someone can shed some light: i wrote a basic script and am executing it from a page - getting 500 internal server error.
i typed: perldoc dbi and it came up so i know it's installed & i'm having no other server problems at the moment
the log's error is:
Code:
install_driver(mysql) failed: Can't find loadable object for module DBD::mysql in @INC (/usr/libdata/perl5/i386-bsdos/5.00402 /usr/libdata/perl5 /usr/libdata/perl5/site_perl/i386-bsdos /usr/libdata/perl5/site_perl /usr/libdata/perl5/site_perl/i386-bsdos/include .) at (eval 1) line 2

Perhaps DBD::mysql was statically linked into a new perl binary.
In which case you need to use that new perl binary.
Or perhaps only the .pm file was installed but not the shared object file.
 at /www/cgi-bin/mysql_exp2.cgi line 7

httpd: [Thu Feb 28 15:51:06 2002] [error] [client 192.168.1.254] Premature end of script headers: /www/cgi-bin/mysql_exp2.cgi

could someone please help?
thank you

Reply With Quote
  #2  
Old February 28th, 2002, 03:32 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> it came up so i know it's installed

But where? If your script can't locate it you need to add use lib '/path/to/parent/dir/of/that/perl/module';

BTW [500] is a catch-all error which tells us nothing. And your topic is off-topic as well.

Reply With Quote
  #3  
Old March 1st, 2002, 11:48 AM
drGiggles drGiggles is offline
nerd
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: NJ
Posts: 101 drGiggles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 30 m 37 sec
Reputation Power: 7
oops sorry 'bout that -
well that info is exactly what i've been looking for.
so use lib etc... in the script will work? great.
thanks so much for your aid

Last edited by drGiggles : March 5th, 2002 at 10:41 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > dbi error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway