DBI error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laszlo

    DBI error

    Hi everybody

    I am a beginner in Perl DBI.
    The following dummy code

    "
    #!c:\perl\bin\p erl.exe
    #
    use DBI;
    "

    returns this error message:

    "
    DBI object version 1.34 does not match $DBI::VERSION 1.35 at
    C:/Perl/lib/DynaLoader.pm line 249.
    BEGIN failed--compilation aborted at C:/Perl/lib/DBI.pm line 255.
    Compilation failed in require at dbi01.pl line 1.
    BEGIN failed--compilation aborted at dbi01.pl line 1.
    "

    What is wrong ?
  • Colin McSwiggen

    #2
    Re: DBI error

    I'm far from being an expert when it comes to the DBI, but if you're getting
    a version mismatch it's probably a good idea for you to update your copy of
    DBI.pm and the related files.


    graf.laszlo@axi s.hu (Laszlo) wrote in message news:<205f57b7. 0311090525.7e8c a286@posting.go ogle.com>...[color=blue]
    > Hi everybody
    >
    > I am a beginner in Perl DBI.
    > The following dummy code
    >
    > "
    > #!c:\perl\bin\p erl.exe
    > #
    > use DBI;
    > "
    >
    > returns this error message:
    >
    > "
    > DBI object version 1.34 does not match $DBI::VERSION 1.35 at
    > C:/Perl/lib/DynaLoader.pm line 249.
    > BEGIN failed--compilation aborted at C:/Perl/lib/DBI.pm line 255.
    > Compilation failed in require at dbi01.pl line 1.
    > BEGIN failed--compilation aborted at dbi01.pl line 1.
    > "
    >
    > What is wrong ?[/color]

    Comment

    • Nick Santos

      #3
      Re: DBI error

      I too am far from being an expert, however, I'd agree. if that little
      snippet alone generates an error, it sounds like your version of perl has a
      problem with your version of DBI, and so while you're upgrading DBI, I'd
      recommend upgrading your perl installation as well. Also(remember that I'm
      just guessing) it looks like something is stating that your DBI version is
      different than perl thinks it should be, which would further indicate that
      maybe an upgrade is needed

      "Colin McSwiggen" <cswigg@myway.c om> wrote in message
      news:fb8647b8.0 311102017.60ba1 812@posting.goo gle.com...[color=blue]
      > I'm far from being an expert when it comes to the DBI, but if you're[/color]
      getting[color=blue]
      > a version mismatch it's probably a good idea for you to update your copy[/color]
      of[color=blue]
      > DBI.pm and the related files.
      >
      >
      > graf.laszlo@axi s.hu (Laszlo) wrote in message[/color]
      news:<205f57b7. 0311090525.7e8c a286@posting.go ogle.com>...[color=blue][color=green]
      > > Hi everybody
      > >
      > > I am a beginner in Perl DBI.
      > > The following dummy code
      > >
      > > "
      > > #!c:\perl\bin\p erl.exe
      > > #
      > > use DBI;
      > > "
      > >
      > > returns this error message:
      > >
      > > "
      > > DBI object version 1.34 does not match $DBI::VERSION 1.35 at
      > > C:/Perl/lib/DynaLoader.pm line 249.
      > > BEGIN failed--compilation aborted at C:/Perl/lib/DBI.pm line 255.
      > > Compilation failed in require at dbi01.pl line 1.
      > > BEGIN failed--compilation aborted at dbi01.pl line 1.
      > > "
      > >
      > > What is wrong ?[/color][/color]


      Comment

      Working...