pgAgent安装部署

简介: pgAgent是PostgreSQL的一个job引擎,可以执行数据库job任务。本文简述其安装步骤一 安装cmake#检查是否安装[root@bogon ~]# cmake --versioncmake version 2.

pgAgent是PostgreSQL的一个job引擎,可以执行数据库job任务。本文简述其安装步骤

一 安装cmake

#检查是否安装
[root@bogon ~]# cmake --version
cmake version 2.8.11

#如果未安装执行下面的语句
wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz
tar -zxvf cmake-2.8.5.tar.gz
cd /root/src/cmake-2.8.5
./bootstrap
make 
make install

二 安装wxGTK-2.8.12

wget https://github.com/wxWidgets/wxWidgets/releases/download/v2.8.12/wxGTK-2.8.12.tar.gz
#注意编译的时候一定要支持unicode 与 静态编译
 ./configure   --enable-shared=no --enable-unicode=yes
make
make install

./configure可能报错如下:

*** 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

需要安装gkt+,笔者源码安装又发现一堆依赖,这里先不管了,直接yum安装

yum install gtk2-devel

然后编译就通过了。

三 安装pgAgent

#在root账户下执行
# tar -zxvf pgAgent-3.0.1-Source.tar.gz
# source /home/postgres/.bashrc #引入postgres的环境变量
# cmake ./
# make
# make install

cmake可能报错如下:

/bin/ld:cannot find -lcrypto

简单的执行以下语句:

yum install openssl-devel

成功后用pgsql 用户登录数据库执行

[postgres@bogon ~]$ psql
psql (9.6.0)
Type "help" for help.

postgres=# \i /usr/local/share/pgagent.sql
postgres=# \i /usr/local/share/pgagent_upgrade.sql
相关文章
|
9月前
|
Kubernetes 网络协议 网络安全
K8s安装部署--超级详细(无坑,v1.23)
K8s安装部署--超级详细(无坑,v1.23 yum localinstall -y kernel-ml-6.4.10-1.el7.elrepo.x86_64.rpm
399 3
|
机器学习/深度学习 Web App开发 文字识别
OCRmypdf安装部署深入详解
1、OCRmypdf简介 OCRmyPDF使用最好的可用开源OCR引擎Tesseract执行OCR。 OCRmyPDF是一个Python 3包,将OCR图层处理结果添加到PDF。 OCRmyPDF是功能最丰富且经过彻底测试的OCR PDF转换工具。 2、OCRmypdf支持的系统 1) macOS 2) Ubuntu 16.04 LTS 3)ArchLinux 4)Windows 此外,OCRmypdf提供了docker镜像,可以直接下载镜像、使用。
885 0
|
并行计算 数据可视化 Linux
FastDeploy 安装部署
FastDeploy 安装部署
1660 0
FastDeploy 安装部署
|
SQL 分布式计算 关系型数据库
安装部署 | 学习笔记
快速学习 安装部署
117 0
安装部署 | 学习笔记
|
域名解析 JSON 网络协议
freeipa安装部署
freeipa是linux的一个开源的安全解决方案,它提供账户管理和集中认证,类似于微软的AD(active directory)。
3586 0
|
Linux Docker 容器
安装部署应用
安装部署应用
82 0
|
jenkins Java 测试技术
jenkins安装部署实战
Jenkins安装部署 1、首先下载Jenkins.war包,官网:https://jenkins.io/download/,这块用的比较老,为了和配管的版本一致。 2、部署好Jdk和Tomcat 3、去apache官网下载maven软件包,部署好maven 4、svn环境,可以参考之前的博客配置web访问svn仓库篇。
988 0
|
监控 网络协议 Python
Saltstack基本安装部署
配置环境 master节点 :172.16.100.10 minion节点 :172.16.100.20 msater节点 #####安装软件包##### # curl -o /etc/yum.
757 0
|
关系型数据库 Java MySQL
|
虚拟化 数据安全/隐私保护