Re: DBI pure perl version 1.54

Re: DBI pure perl version 1.54

am 23.04.2007 16:39:22 von dkleppinger

Shreya Kalbag wrote:
> Hi,
>
> I am trying to use PostgreSQL for a database module im writing on
> hpux. I am facing a lot of issues in tuning these things for hpux. Is
> there a simpler way to use pgsql with dbi on hpux? Please help me out.
>
> I used DBD::PgPP 0.05 as that was what was available on cpan. But the
> perl i am using is 5.8.8 & DBI, again the pure perl version 1.54. I am
> getting a compilation error on this. I understand that this is a DBI
> version mismatch but how do i get to tune this up as my make fails for
> the DBI module. THe error is pasted below. Please help me out with
> this or let me know if there is a simpler way to do this.
>
> DBI object version 1.50 does not match $DBI::VERSION 1.54 at
> /opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/DynaLoader.pm line 253.
> BEGIN failed--compilation aborted at /opt/perl_32/lib/5.8.8/DBI.pm
> line 261.
> Compilation failed in require at ./temp line 4.
> BEGIN failed--compilation aborted at ./temp line 4.
>
> Attached is the make errors file.
>
> THanks,
> Shreya Kalbag
>
>
>
It looks like you've done something strange.
What version of HPUX are you on?
/opt/perl_32 is normally the 32-bit perl that comes installed on hpux 11
and higher. It's compiled with HP's ansi-C compiler.
You are trying to compile DBI using gcc.
Have you overwritten HP's perl with your own version recompiled with gcc
or are you just forcing gcc to be used for DBI? If the latter, that's
probably your problem since perl and DBI need to be compiled using the
same compiler.