centos7安装配置pgAgent

本文档详细介绍了在CentOS7上安装pgAgent的步骤,包括编译wxGTK,解决配置过程中遇到的问题,如错误安装GTK+开发文件,解决链接库问题,以及最终成功安装并创建pgAgent扩展。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

centos7安装pgagent:

 

默认cmake已经安装

 

编译wxGTK

https://excellmedia.dl.sourceforge.net/project/wxwindows/2.8.7/wxGTK-2.8.7.tar.gz

 

# yum install gcc gcc-c++

 

# tar -zxf wxGTK-2.8.7.tar.gz

 

# cd wxGTK-2.8.7

 

[wxGTK-2.8.7]# vi /etc/profile

export PGHOME=/usr/local/postgresql

export PGDATA=/data/pg_data

export PATH=$PATH:$PGHOME/bin:/usr/local/wxGTK-2.8.7/bin

export LD_LIBRARY_PATH=/usr/local/wxGTK-2.8.7/lib:$PGHOME/lib:$LD_LIBRARY_PATH

 

[wxGTK-2.8.7]# source /etc/profile

bash: TMOUT: readonly variable

 

# echo $TMOUT

# export TMOUT=1700

# exit

# export TMOUT=1700

 

[wxGTK-2.8.7]# ./configure --enable-shared=no --enable-unicode=yes --prefix=/usr/local/wxGTK-2.8.7

checking for GTK+ version... 

checking for pkg-config... /usr/bin/pkg-config

checking for GTK+ - version >= 2.0.0... no

*** Could not run GTK+ test program, checking why...

*** The test program failed to compile or link. See the file config.log for the

*** exact error that occured. This usually means GTK+ is incorrectly installed.

configure: error:

The development files for GTK+ were not found. For GTK+ 2, please

ensure that pkg-config is in the path and that gtk+-2.0.pc is

installed. For GTK+ 1.2 please check that gtk-config is in the path,

and that the version is 1.2.3 or above. Also check that the

libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config

--libs' are in the LD_LIBRARY_PATH or equivalent.

 

# yum -y install gtk2-devel binutils-devel

 

[wxGTK-2.8.7]# ./configure --enable-shared=no --enable-unicode=yes --prefix=/usr/local/wxGTK-2.8.7

 

[wxGTK-2.8.7]# make

In file included from ./include/wx/gsocket.h:179,

                 from ./src/gtk/gsockgtk.cpp:21:

./include/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’ after ‘class’

/usr/include/glib-2.0/gio/giotypes.h:141: error: ‘GSocket’ has a previous declaration here

./src/gtk/gsock

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值