On Apr 9, 1:07 pm, [EMAIL PROTECTED] (James H. McCullars) wrote:
> At 10:47 AM 4/9/2008, pgodfrin wrote:
>
> >This will obviate the need to use LD_LIBRARY_PATH, which has some
> >controversy surrounding it's use. I also found a strangeness for the
> >install of DBD. If I remember correctly, the install document states
> >that LD_LIBRARY_PATH should be set during the module install, which
> >will link the value of the LD_LIBRARY_PATH . Indeed the value ends up
> >in the make file (in the EXTRA_LIBS,  LD_RUN_PATH and OTHERLDFLAGS
> >entries), and the library seems to be available as per the ldd
> >command, yet, without either an LD_LIBRARY_PATH environment variable
> >or the ld.so.conf.d method, DBD does not run.
>
> >Any thoughts?
> >pg
>
>     I've just been through an install of DBD::Oracle on a Solaris 10
> machine and this was my experience as well.  My needs were
> complicated by the fact that I was running it as a CGI script and
> thus did not have a way to easily set an environment variable.
>
>     If you set LD_LIBRARY_PATH (or maybe LD_RUN_PATH) while doing the
> module build, then Oracle.so will be compiled with the paths to the
> modules it needs.  But at runtime, it will load (on my system)
> libclntsh.so.10.1 which it finds in the oracle instant client
> directory.  But then libclntsh.so.10.1 will want to load libnnz10.so
> and will not be able to because libclntsh.so.10.1 was compiled with a
> run path of whatever machine the Oracle client was compiled on.  So
> what I wound up doing was just symlinking libnnz10.so to /usr/lib and
> I could then get my script to run without any runtime load paths.
>
>     Hope this helps...
>
> Jim McCullars
> University of Alabama in Huntsville

hmmm - running ldd on libclntsh.so gives me this:


linux-gate.so.1 =>  (0x00110000)
libnnz10.so => /oracle/product/10.2.0.3/lib/libnnz10.so (0x00111000)
libdl.so.2 => /lib/libdl.so.2 (0x00317000)
libm.so.6 => /lib/libm.so.6 (0x0031c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00345000)
libnsl.so.1 => /lib/libnsl.so.1 (0x0035e000)
libc.so.6 => /lib/libc.so.6 (0x00377000)
/lib/ld-linux.so.2 (0x00687000)

I'm running a Fedora 8 box - 10.2.0.3 Oracle install...

pg

Reply via email to