我的db版本是9.3
我想创建jdbc_fdw扩展,我收到错误消息:
could not load library "/opt/PostgresPlus/9.3AS/lib/jdbc_fdw.so": libjvm.so: cannot open shared object file: No such file or directory
我使用ldd来检查jdbc_fdw.so:
ldd /opt/PostgresPlus/9.3AS/lib/jdbc_fdw.so
linux-vdso.so.1 => (0x00007fffbed82000)
libjvm.so => /usr/java/jdk1.8.0_45/jre/lib/amd64/server/libjvm.so (0x00007f79fe1f7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f79fde51000)
libm.so.6 => /lib64/libm.so.6 (0x00007f79fdbcd000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f79fd9c9000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f79fd7ab000)
/lib64/ld-linux-x86-64.so.2 (0x000000365fc00000)
但我仍然无法创建此扩展程序。
我的.bash_profile如下:
PATH=$PATH:$HOME/bin:/opt/PostgresPlus/9.3AS/bin
PGDATA=/bin:/opt/PostgresPlus/9.3AS/data
JAVA_HOME=/usr/java/jdk1.8.0_45
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/java/jdk1.8.0_45/jre/lib/amd64/server
export PATH
export PGDATA
export JAVA_HOME
export LD_LIBRARY_PATH
你能帮我解决这个问题吗? 谢谢。
答案 0 :(得分:1)
我遇到了同样的问题。正在运行ln -s /usr/java/jdk1.8.0_45/jre/lib/amd64/server/libjvm.so /lib64/libjvm.so
为我解决了这个问题。