Postgres错误(设置PLJava)

时间:2009-12-09 21:17:50

标签: java linux unix postgresql pljava

我一直在努力解决试图让PLJava在RHEL上使用PostgreSQL的问题。

这是我所拥有的(基于此:PL/Java README

的.cshrc

setenv JAVA_HOME /opt/jdk1.6.0_17/
setenv LD_LIBRARY_PATH ${JAVA_HOME}/jre/lib/i386
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/i386/client
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/i386/native_threads
setenv PG_DATA /var/lib/pgsql/data

日志输出

DEBUG:  find_in_dynamic_libpath: trying "/usr/lib/pgsql/pljava"
DEBUG:  find_in_dynamic_libpath: trying "/usr/lib/pgsql/pljava.so"
ERROR:  could not load library "/usr/lib/pgsql/pljava.so": libjvm.so: failed to map segment from shared object: Permission denied

谁能告诉我这实际意味着什么?

libjvm.so: failed to map segment from shared object: Permission denied

我意识到这是一个非常具体的问题,但我真的很挣扎,任何想法都会受到欢迎。

1 个答案:

答案 0 :(得分:1)

需要在RHEL中关闭SELinux