目录
环境
文档用途
详细信息
环境
系统平台:Linux x86-64 Red Hat Enterprise Linux 7
版本:5.6.5,4.3.4.5
文档用途
在数据库没有pldebugger调试扩展情况下,需要手动编译安装。
详细信息
一、环境
Linux:CentOS Linux release 7.2.1511 (Core)
hgdb:安全版4.3.4.5、企业版5.6.5
二、安装pldebugger
1、下载pldebugger
Git下载并移动到PG软件目录下,本案例PG目录/opt/HighGoDB-4.3.4.6/share/contrib/
mkdir /opt/download
cd /opt/download/
git clone git://git.postgresql.org/git/pldebugger.git
mv pldebugger /opt/HighGoDB-4.3.4.6/share/contrib/
离线安装源码详见附件。
2、编译安装pldebugger
cd /opt/HighGoDB-4.3.4.6/share/contrib/pldebugger/
执行命令:
make
如果报错,加USE_PGXS=1,原因可以自行搜索。make: *** 没有规则可以创建目标“/contrib/contrib-global.mk”。 停止
make USE_PGXS=1 install
报错/opt/HighGoDB-4.3.4.6/include/server/libpq/libpq-be.h:25:25: 致命错误:openssl/ssl.h:没有那个文件或目录
安装openssl
yum install openssl-devel
make USE_PGXS=1 install
安装完后在postgresql目录的Lib文件夹可以看到plugin_debugger.so文件
cd /opt/HighGoDB-4.3.4.6/lib
ls 查看
更多详细信息请登录【瀚高技术支持平台】查看https://support.highgo.com/#/index/docContent/3367593d024f1947