public inbox for [email protected]  
help / color / mirror / Atom feed
Subject: [Pljava-dev] building pljava for solaris 10 sparc 64bit
Date: Thu, 15 Apr 2010 18:14:36 -0400 (EDT)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>



On Thu, 15 Apr 2010, John R Pierce wrote:

> so I've been having fun getting pl/java 'HEAD' working with Postgres 8.4.3 
> 64bit on Solaris Sparc, with JDK 1.5.0_23 64bit...
>
> ERROR:  could not load library "/opt/FIS/pljava/pljava.so": ld.so.1: 
> postgres: fatal: libjvm.so: open failed: No such file or directory
>
> These are in the postgres server 'start' method script (I'm running postgres 
> under SMF control)
>
>   JAVA_HOME=/usr/jdk/jdk1.5.0_23
>   LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/sparcv9:$JAVA_HOME/jre/lib/sparcv9/server:/opt/FIS/pljava
>   PATH=$JAVA_HOME/bin/sparcv9:$PATH
>

I'm not familiar with SMF, but putting environment variables into start 
scripts often doesn't work because they start as root and then su to the 
user running postgres and when that happens the current environment is 
scrapped and replaced by that of the postgres user's.

Kris Jurka




view thread (8+ messages)  latest in thread

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: [email protected]
  Subject: Re: [Pljava-dev] building pljava for solaris 10 sparc 64bit
  In-Reply-To: <[email protected]>

* 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