我一直在努力解决试图让 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
我意识到这是一个非常具体的问题,但我真的很挣扎,任何想法都会受到欢迎。