El mié, 27-08-2008 a las 04:56 -0700,
[EMAIL PROTECTED] escribió:
> ------------------------------
> 
> Message: 2
> Date: Wed, 27 Aug 2008 11:29:50 +1000
> From: "Gary Browne" <[EMAIL PROTECTED]>
> Subject: [Dspace-tech] Stats addon install error
> To: "dspace-tech Tech" <[email protected]>
> Message-ID:
>       <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi all
>  
> Trying to install the stats addon - actually just one of the
> prerequisites - pl/java. When running 
>  
> java -cp /usr/share/pljava/deploy.jar:/usr/share/pljava/postgresql.jar
> org.postgresql.pljava.deploy.Deployer -install -user postgres -password
> %PASS% -database dspace
> 
> we get the following error:
>  
> org.postgresql.util.PSQLException: ERROR: could not load library
> "/usr/share/pljava/pljava.so": libjvm.so: cannot open shared object
> file: No such file or directory
>         at
> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu
> torImpl.java:1575)
>         at
> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImp
> l.java:1324)
>         at
> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:
> 190)
>         at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme
> nt.java:452)
>         at
> org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb
> c2Statement.java:340)
>         at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme
> nt.java:332)
>         at
> org.postgresql.pljava.deploy.Deployer.initJavaHandlers(Deployer.java:474
> )
>         at org.postgresql.pljava.deploy.Deployer.main(Deployer.java:269)
> 
> Any ideas on how to fix this?
>  
> Thanks
> Gary
>  
> 
> Gary Browne
> Development Programmer
> Library IT Services
> University of Sydney
> ph: 9351-5946
>  
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------

Hi Gary,

we had the same problem when installing the stats addon.
You have to configure the LD_LIBRARY_PATH and then restart the
postgresql postmaster. 

This is what we have in our /etc/profile

export JAVA_HOME=/usr/local/jdk1.5.0_09
export PATH="$PATH:/usr/local/jdk1.5.0_09/bin"
export JRE_HOME=$JAVA_HOME/jre
export LD_LIBRARY_PATH=$JRE_HOME/lib/i386:$JRE_HOME/lib/i386/client

After that you can run "$ldconfig -p" as root to see if libjvm.so is
loaded.

Best regards,

Juan.

-- 
Juan David Arias
Unidad de Desarrollo
Centro de Teleinformación
Corporación Parque Tecnológico de Mérida
Mérida, Venezuela
E-mail: [EMAIL PROTECTED]
Tel: (58) 274-252-4192


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to