agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] java.sql.SQLException: ERROR:could not loadlibrary"/usr/local
Date: Sun, 3 Apr 2005 19:18:12 +0100
Message-ID: <200504031817.j33IH0nn008018@localhost.localdomain> (raw)
In-Reply-To: <424DC1E7.4040803@mailblocks.com>
Yep, good tip!!!
Yep, with that tip I've finally overcame the problem!!!
I've changed the script "/etc/init.d/postgres", now I export the
LD_LIBRAY_PATH just before starting the postmaster:
#------ /etc/init.d/postgres --------------------------
echo -n "$PSQL_START"
$SU -l postgres -c "export
LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_08/jre/lib:/usr/java/j2sdk1.4.2_08/jre/
lib/i386/client:/usr/java/j2sdk1.4.2_08/jre/lib/i386/native_threads
;$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG"
2>&1 < /dev/null
#------------------------------------------------------
There must be other solutions, but for now this one solves my problem :)
Thanks to all, without you I wouldn't be able to overcome that problem.
M.P.Garcia
> 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)
Message-ID: <200504031817.j33IH0nn008018@localhost.localdomain>
Permalink: ../200504031817.j33IH0nn008018@localhost.localdomain/
Also on: postgresql.org/message-id/200504031817.j33IH0nn008018@localhost.localdomain
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: <200504031817.j33IH0nn008018@localhost.localdomain>
* 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