Compiling DBD::Oracle 1.17 with LD_RUN_PATH

I had just built and installed DBD::Oracle 1.17, and I found that I couldn't
use it unless I had LD_LIBRARY_PATH set in my environment. However, with an
installation of DBD::Oracle 1.06, I didn't need LD_LIBRARY_PATH set.

It turns out that the Makefile for 1.06 sets LD_RUN_PATH, which then gets
included in the compiled Oracle.so file, making LD_LIBRARY_PATH unnecessary.
The Makefile for 1.17, on the other hand, doesn't set LD_RUN_PATH.

By setting LD_RUN_PATH in my environment, I was able to build 1.17 with the
path included in Oracle.so.

I'm curious why this change in behavior occured.

thanks,
Ronald
rjk-dbi [ Fr, 29 September 2006 18:47 ] [ ID #1483795 ]

Re: Compiling DBD::Oracle 1.17 with LD_RUN_PATH

Oracle changed the internal location/mapping/bundleing of some thier binaly
files.

Specifally the libclntsh.so file is now bundled in the libclntsh.so.10.1
file (depending on which client)

Pehaps we can use LD_RUN_PATH instead in the next version of DBD::Oracle

I will look into this.

cheers
John Scoles


----- Original Message -----
From: "Ronald J Kimball" <rjk-dbi [at] focalex.com>
To: <dbi-users [at] perl.org>
Sent: Friday, September 29, 2006 12:47 PM
Subject: Compiling DBD::Oracle 1.17 with LD_RUN_PATH


>I had just built and installed DBD::Oracle 1.17, and I found that I
>couldn't
> use it unless I had LD_LIBRARY_PATH set in my environment. However, with
> an
> installation of DBD::Oracle 1.06, I didn't need LD_LIBRARY_PATH set.
>
> It turns out that the Makefile for 1.06 sets LD_RUN_PATH, which then gets
> included in the compiled Oracle.so file, making LD_LIBRARY_PATH
> unnecessary.
> The Makefile for 1.17, on the other hand, doesn't set LD_RUN_PATH.
>
> By setting LD_RUN_PATH in my environment, I was able to build 1.17 with
> the
> path included in Oracle.so.
>
> I'm curious why this change in behavior occured.
>
> thanks,
> Ronald
>
>
>
scoles [ Fr, 29 September 2006 19:06 ] [ ID #1483800 ]
Perl » perl.dbi.users » Compiling DBD::Oracle 1.17 with LD_RUN_PATH

Vorheriges Thema: defining a DSN for Access on Linux
Nächstes Thema: Statement Handle still Active