Re: DBI pure perl version 1.54

Re: DBI pure perl version 1.54

am 23.04.2007 10:10:32 von hjp

--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> I used DBD::PgPP 0.05 as that was what was available on cpan. But the per=
l 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.
>=20
> 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=3D199506L -D_REENTRANT -D_HPUX_SOURCE=
-fPIC -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSE=
T_BITS=3D64 -fno-strict-aliasing -pipe -DVERSION=3D\"1.54\" -DXS_VERSI=
ON=3D\"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


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

--82I3+IH0IqGh5yIs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGLGn4MdFfQa64PCwRAm+bAJ9QlaIrVp7XPkagoLecl8y7sn+cMQCd Gtk8
lUIIp1MhfMFBZh9Arr35OxI=
=Vat4
-----END PGP SIGNATURE-----

--82I3+IH0IqGh5yIs--