Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old November 13th, 2000, 05:49 PM
JakeyG JakeyG is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 22 JakeyG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm trying to get Perl to connect to a MySQL database using DBI and
DBD-Mysql on my Win '98 development platform, but cannot get the DBI module
to work. The following line results in an internal server error:

use DBI;

I've got ActiveState Perl installed on my PC, and it works fine with all the
standard modules. I've used ppm.pl to download and install by:
install DBI
to install the DBI module, and:
install DBD-Mysql
to install the Mysql driver.

On installing them, it said everything was fine (at least, no errors),
however the line "use DBI;" still returns a "500 Internal Server Error".

I've tried uploading the file to the webserver which I'll be using, and
there's no error there, and hence no other error with the file (tried
#'shing out the line, and then there's no error either on home machine).

Any ideas? Thanks in advance,

------------------
-----------
Jake Gordon
Remove "SPAM" below,
jakegSPAM@lineone.net
www.jakeyg.com

Reply With Quote
  #2  
Old November 14th, 2000, 05:56 AM
JakeyG JakeyG is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 22 JakeyG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OK, here's the server's error log - although I can't figure out what I need to change from this. I seem to have two instances of Perl installed - one in C:/perl and one in C:/usr/lib... could this be the problem?

[error] [client 127.0.0.29] at C:/usr/site/lib/DBI.pm line 182
[error] [client 127.0.0.29] BEGIN failed--compilation aborted at
C:/usr/site/lib/DBI.pm line 182.
[error] [client 127.0.0.29] BEGIN failed--compilation aborted at
/usr/etc/htdocs/ninten/cgi-bin/index.cgi line 3.
[error] [client 127.0.0.29] Premature end of script headers:
/usr/etc/htdocs/ninten/cgi-bin/index.cgi
[error] [client 127.0.0.29] Can't load 'C:/usr/site/lib/auto/DBI/DBI.dll'
for module DBI: load_file:One of the library files needed to run this
application cannot be foun at C:/usr/lib/DynaLoader.pm line 169.



------------------
-----------
Jake Gordon
Remove "SPAM" below,
jakegSPAM@lineone.net
www.jakeyg.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Installing DBI on Win '98


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 6 hosted by Hostway