[OPEN-ILS-DEV] Startup errors

Hennie Rautenbach hennie at sabinet.co.za
Sun Jun 3 12:49:59 EDT 2007


Dan Scott wrote:
> First, get the path where libdbdpgsql.so is installed:
> $ locate libdbdpgsql.so

opensrf at leo:~$ locate libdbdpgsql.so
/usr/lib/dbd/libdbdpgsql.so

> Then, list the libraries that are dynamically linked against 
> libdbdpgsql.so:
>
> $ ldd /path/to/libdbpgsql.so

/usr/local/src/libdbi-drivers-0.8.2-1/drivers/pgsql/.libs/libdbdpgsql.so
opensrf at leo:~$ ldd /usr/lib/dbd/libdbdpgsql.so
        linux-gate.so.1 =>  (0xffffe000)
        libpq.so.4 => /usr/lib/libpq.so.4 (0xb7f63000)
        libdbi.so.0 => /usr/lib/libdbi.so.0 (0xb7f56000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e25000)
        libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7de6000)
        libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 
(0xb7cac000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7c30000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7c2d000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7bfe000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7bec000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7be8000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7bc3000)
        /lib/ld-linux.so.2 (0x80000000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7baf000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb7b89000)
        libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7b76000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb7b71000)


> One of these libraries listed should be libdbi.so; if not, then you
> probably need to carefully rebuild libdbi.so and libdbdpgsql.so from
> source following the directions at
> http://open-ils.org/dokuwiki/doku.php?id=libdbi

Thanks - this was previously an issue but I have recompiled as per the 
suggestion.

> One other note: unless you're running CVS HEAD, where we've fixed the
> problem by linking with -rpath, you'll need to have your
> LD_LIBRARY_PATH environment variable set to point at the location of
> the libdbi.so and libdbdpgsql.so directory. Setting LD_LIBRARY_PATH is
> also covered (briefly) in the libdbi wiki page.

opensrf at leo:~$ echo $LD_LIBRARY_PATH
/openils/lib:/usr/lib/dbd:/usr/local/lib:

Regards,

Hennie



More information about the Open-ils-dev mailing list