in reply to DBI, Windows and Perl56.dll error

Please if any monk has a clue or koan that leads me in correct direction I will gladly take it.

You're running 5.8 on Windows, but you also suggest that you're getting the MySQL driver from CPAN. Have you tried getting the pre-built driver from ActiveState? Assuming that you're running ActiveState Perl,

C:> ppm install dbd-mysql
is the incantation to fetch the mysql driver from the ActiveState repository and install it.

Replies are listed 'Best First'.
Re: Re: DBI, Windows and Perl56.dll error
by Akira71 (Scribe) on May 15, 2003 at 17:57 UTC
    Thank you for your reply.

    I did try this before and I have run a test of DBI to see if it works. I forgot to emntion this. First here is the output from DOS that I received when doing the above code just to try again.
    C:\Perl>ppm install dbd-mysql Version 2.1026 of 'DBD-mysql' is already installed. Remove it, or use 'verify --upgrade DBD-mysql'. C:\Perl>ppm verify --upgrade DBD-mysql Package 'DBD-mysql' is up to date.


    This is the extremely simple PERL program I used to test CGI and DBI taken from the so far good book "MySQL and PERL for the Web."
    #! /usr/bin/perl # intro2.pl - verify availability of CGI.pm and DBI modules use CGI; use DBI; $cgi = new CGI; print "The CGI object was created sauccesfully.\n"; @driver_names = DBI->available_drivers(); print "These DBI drivers are available: @driver_names\n"; exit(0);


    This runs just fine and dumps the output of all the drivers I am running.
    C:\Apache2\perl_dev>perl intro2.pl The CGI object was created sauccesfully. These DBI drivers are available: CSV ExampleP File ODBC Oracle Proxy S +QLite mysql


    Hopefully this will help to clarify a little bit more.
    Again, thank you for all the kind help.

      Maybe the module is up-to-date, but most likely it's for a different version of Perl. Run

      ppm remove DBD-mysql ppm install DBD-mysql

      BTW, how did you install it in the first place?

      Jenda
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
         -- Rick Osborne

      Edit by castaway: Closed small tag in signature