On 2007-04-23 02:20:59 +1000, Shreya Kalbag wrote:
> 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.

Why? Did you have problems compiling DBI?

> 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.

DBI.pm is obviously trying to load the XS (i.e. NOT pure perl) part
here. Have you set the DBI_PUREPERL pureperl variable as described in
perldoc DBI::PurePerl?


> Attached is the make errors file.

That probably answers my question why you want to use DBI::PurePerl, but
it would be nice if you said so explicitely, and didn't leave us to
speculate why you attach a file with a completely different error
message.

>         gcc -c    -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC 
> -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
> -fno-strict-aliasing -pipe     -DVERSION=\"1.54\"  -DXS_VERSION=\"1.54\" 
> -fPIC "-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/CORE"   Perl.c
> /usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libiconv.sl
> /usr/lib/dld.sl: No such file or directory

Looks like you don't have a functional C compiler. Can you compile a
simple program like this?

int main(void) { return 0; }

If not you should install libiconv.

        hp


-- 
   _  | Peter J. Holzer    | If I wanted to be "academically correct",
|_|_) | Sysadmin WSR       | I'd be programming in Java.
| |   | [EMAIL PROTECTED]      | I don't, and I'm not.
__/   | http://www.hjp.at/ |   -- Jesse Erlbaum on dbi-users

Attachment: pgpA4w1lYgtQr.pgp
Description: PGP signature

Reply via email to