agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] java.sql.SQLException: ERROR:could not loadlibrary"/usr/local
Date: Fri, 01 Apr 2005 23:49:27 +0200
Message-ID: <424DC1E7.4040803@mailblocks.com> (raw)
In-Reply-To: <200504011906.j31J64nn013428@localhost.localdomain>
References: <200504011906.j31J64nn013428@localhost.localdomain>
Gulden wrote:
> 3. Postgresql doesn't care about the LD_LIBRARY_PATH, it has it own
>LD_LIBRARY_PATH!!!
>
>
Just to clarify.
PostgresSQL uses the postgresql.conf setting "dynamic_library_path" to
find add-on modules. libpljava.so is such a module. PostgreSQL will load
such modules by assembling absolute paths that it sends that to the
dynamic loader (dlopen on Linux). So far, the LD_LIBRARY_PATH has not
been used at all.
When libjava.so has been successfully loaded, it will try to initialize
the Java VM. That, in turn, will invoke the loader again. This time
however, the loader is not explicitly invoked from code and the loader
will utilize the LD_LIBRARY_PATH that is in effect for the backend
process in order to find the libjvm.so and other shared objects that the
libjvm.so might need in turn.
> Where can I configure that???
>
You define the relevant LD_LIBRARY_PATH by exporting it just before you
start the postmaster deamon. That deamon will then propagate the setting
to all backend processes that it spawns, thus making the LD_LIBRARY_PATH
visible to libpljava.so.
- thomas
view thread (31+ messages) latest in thread
Message-ID: <424DC1E7.4040803@mailblocks.com>
Permalink: ../424DC1E7.4040803@mailblocks.com/
Also on: postgresql.org/message-id/424DC1E7.4040803@mailblocks.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] java.sql.SQLException: ERROR:could not loadlibrary"/usr/local
In-Reply-To: <424DC1E7.4040803@mailblocks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox