我的编程空间,编程开发者的网络收藏夹
学习永远不晚

centos7安装配置pgAgent

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

centos7安装配置pgAgent

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 ./class="lazy" data-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

./class="lazy" data-src/gtk/gsockgtk.cpp: In function ‘void _GSocket_GDK_Input(void*, gint, GdkInputCondition)’:

./class="lazy" data-src/gtk/gsockgtk.cpp:34: error: ‘struct _GSocket’ has no member named ‘Detected_Read’

./class="lazy" data-src/gtk/gsockgtk.cpp:36: error: ‘struct _GSocket’ has no member named ‘Detected_Write’

./class="lazy" data-src/gtk/gsockgtk.cpp: In member function ‘virtual bool GSocketGUIFunctionsTableConcrete::Init_Socket(GSocket*)’:

./class="lazy" data-src/gtk/gsockgtk.cpp:56: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’

./class="lazy" data-src/gtk/gsockgtk.cpp:57: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’

./class="lazy" data-src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Destroy_Socket(GSocket*)’:

./class="lazy" data-src/gtk/gsockgtk.cpp:67: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’

./class="lazy" data-src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Install_Callback(GSocket*, GSocketEvent)’:

./class="lazy" data-src/gtk/gsockgtk.cpp:72: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’

./class="lazy" data-src/gtk/gsockgtk.cpp:75: error: ‘struct _GSocket’ has no member named ‘m_fd’

./class="lazy" data-src/gtk/gsockgtk.cpp:83: error: ‘struct _GSocket’ has no member named ‘m_server’

./class="lazy" data-src/gtk/gsockgtk.cpp:90: error: ‘struct _GSocket’ has no member named ‘m_fd’

./class="lazy" data-src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Uninstall_Callback(GSocket*, GSocketEvent)’:

./class="lazy" data-src/gtk/gsockgtk.cpp:98: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’

./class="lazy" data-src/gtk/gsockgtk.cpp:108: error: ‘struct _GSocket’ has no member named ‘m_server’

make: *** [corelib_gsockgtk.o] Error 1


[wxGTK-2.8.7]# vi class="lazy" data-src/gtk/gsockgtk.cpp

#define GSocket GlibGSocket  

#include <gdk/gdk.h>  

#include <glib.h>  

#undef GSocket


#undef GSocket和#define GSocket GlibGSocket是添加的内容


[wxGTK-2.8.7]# make install


https://ftp.postgresql.org/pub/pgadmin/pgagent/pgAgent-3.4.0-Source.tar.gz

# tar -zxf pgAgent-3.4.0-Source.tar.gz


# cd pgAgent-3.4.0-Source


[pgAgent-3.4.0-Source]# cmake ./

--  

-- ================================================================================

-- Configuration summary:

--  

--   Project                     : pgagent

--   Description                 : pgAgent is a job scheduling engine for PostgreSQL

--   Version                     : 3.4.0

--  

--   PostgreSQL version string   : PostgreSQL 9.4.18

--   PostgreSQL version parts    : 9.4.18

--   PostgreSQL path             : /usr/pgsql-9.4

--   PostgreSQL config binary    : /usr/pgsql-9.4/bin/pg_config

--   PostgreSQL include path     : /usr/pgsql-9.4/include

--   PostgreSQL library path     : /usr/pgsql-9.4/lib

--   PostgreSQL share path       : /usr/pgsql-9.4/share

--  

--   wxWidgets version           : 2.8.7

--   wxWidgets path              : /usr/local/wxGTK-2.8.7

--   wxWidgets config binary     : /usr/local/wxGTK-2.8.7/bin/wx-config

--   wxWidgets Static linking    : YES

--   wxWidgets Debug?            : NO

-- ================================================================================

--  

-- Configuring done

-- Generating done

-- Build files have been written to: /usr/openv/pg_packges/pgAgent-3.4.0-Source


[pgAgent-3.4.0-Source]# make 

Scanning dependencies of target pgagent

[ 12%] Building CXX object CMakeFiles/pgagent.dir/unix.cpp.o

[ 25%] Building CXX object CMakeFiles/pgagent.dir/job.cpp.o

[ 37%] Building CXX object CMakeFiles/pgagent.dir/precomp.cpp.o

[ 50%] Building CXX object CMakeFiles/pgagent.dir/win32.cpp.o

[ 62%] Building CXX object CMakeFiles/pgagent.dir/pgAgent.cpp.o

[ 75%] Building CXX object CMakeFiles/pgagent.dir/connection.cpp.o

[ 87%] Building CXX object CMakeFiles/pgagent.dir/misc.cpp.o

Linking CXX executable pgagent

/usr/bin/ld: cannot find -lssl

collect2: ld returned 1 exit status

make[2]: *** [pgagent] Error 1

make[1]: *** [CMakeFiles/pgagent.dir/all] Error 2

make: *** [all] Error 2


[pgAgent-3.4.0-Source]# find / -name "libcrypto.so"

/opt/cloud/chef/embedded/lib/libcrypto.so


# ln -sv /opt/cloud/chef/embedded/lib/libcrypto.so /usr/lib/libcrypto.so

‘/usr/lib/libcrypto.so’ -> ‘/opt/cloud/chef/embedded/lib/libcrypto.so’


[pgAgent-3.4.0-Source]# make

Linking CXX executable pgagent

[ 87%] Built target pgagent

Scanning dependencies of target run

[100%] Generating pgagent--3.4.sql, pgagent.control

[100%] Built target run


[pgAgent-3.4.0-Source]# make install


postgres=# create extension pgagent;

CREATE EXTENSION


# pgagent

pgagent: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory


# yum install openssl

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

Resolving Dependencies

--> Running transaction check

---> Package openssl.x86_64 1:1.0.1e-42.el7 will be updated

---> Package openssl.x86_64 1:1.0.1e-51.el7_2.5 will be an update

--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-51.el7_2.5 for package: 1:openssl-1.0.1e-51.el7_2.5.x86_64

--> Finished Dependency Resolution

Error: Package: 1:openssl-1.0.1e-51.el7_2.5.x86_64 (CentOS.7.updates.x86_64)

           Requires: openssl-libs(x86-64) = 1:1.0.1e-51.el7_2.5

           Installed: 1:openssl-libs-1.0.1e-42.el7.x86_64 (@anaconda)

               openssl-libs(x86-64) = 1:1.0.1e-42.el7

           Available: 1:openssl-libs-1.0.1e-51.el7_2.4.x86_64 (CentOS.7.updates.x86_64)

               openssl-libs(x86-64) = 1:1.0.1e-51.el7_2.4

 You could try using --skip-broken to work around the problem

 You could try running: rpm -Va --nofiles --nodigest

 

http://mirror.switch.ch/ftp/pool/4/mirror/scientificlinux/7.2/x86_64/updates/security/openssl-libs-1.0.1e-51.el7_2.5.x86_64.rpm


# rpm -ivh openssl-libs-1.0.1e-51.el7_2.5.x86_64.rpm --nodeps --force


# yum install openssl


# yum install openssl-devel


# rpm -ql openssl-libs-1.0.1e-51.el7_2.5.x86_64

/etc/pki/tls

/etc/pki/tls/certs

/etc/pki/tls/misc

/etc/pki/tls/openssl.cnf

/etc/pki/tls/private

/usr/lib64/.libcrypto.so.1.0.1e.hmac

/usr/lib64/.libcrypto.so.10.hmac

/usr/lib64/.libssl.so.1.0.1e.hmac

/usr/lib64/.libssl.so.10.hmac

/usr/lib64/libcrypto.so.1.0.1e

/usr/lib64/libcrypto.so.10

/usr/lib64/libssl.so.1.0.1e

/usr/lib64/libssl.so.10

/usr/lib64/openssl

/usr/lib64/openssl/engines

/usr/lib64/openssl/engines/lib4758cca.so

/usr/lib64/openssl/engines/libaep.so

/usr/lib64/openssl/engines/libatalla.so

/usr/lib64/openssl/engines/libcapi.so

/usr/lib64/openssl/engines/libchil.so

/usr/lib64/openssl/engines/libcswift.so

/usr/lib64/openssl/engines/libgmp.so

/usr/lib64/openssl/engines/libnuron.so

/usr/lib64/openssl/engines/libpadlock.so

/usr/lib64/openssl/engines/libsureware.so

/usr/lib64/openssl/engines/libubsec.so

/usr/share/doc/openssl-libs-1.0.1e

/usr/share/doc/openssl-libs-1.0.1e/LICENSE


# ldconfig -p

查看到库文件都存在/lib64目录下


# ln -sv /usr/lib64/libcrypto.so.10 /lib64/libcrypto.so.1.0.0


# pgagent

Usage:

pgagent [options] <connect-string>

options:

-f run in the foreground (do not detach from the terminal)

-t <poll time interval in seconds (default 10)>

-r <retry period after connection abort in seconds (>=10, default 30)>

-s <log file (messages are logged to STDOUT if not specified>

-l <logging verbosity (ERROR=0, WARNING=1, DEBUG=2, default 0)>


参考:

参考:

https://blog.csdn.net/ctypyb2002/article/details/77855209

https://blog.csdn.net/ssl2009/article/details/7062621

https://blog.csdn.net/shawnkong/article/details/40826599


免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

centos7安装配置pgAgent

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

CentOS7安装配置mysql5.7 tar免安装版

一、CentOS7.4系统自带mariadb # 查看系统自带的Mariadb[root@localhost~]# rpm -qa|grep mariadbmariadb-libs-5.5.44-2.el7.centos.x86_64# 卸载系统自带的Mari
CentOS7安装配置mysql5.7 tar免安装版
2020-07-13

CentOS7怎么安装配置Reids

这篇文章将为大家详细讲解有关CentOS7怎么安装配置Reids,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。安装设置 下载tar包:wget -c http://download.redis.io/re
2023-06-10

CentOS7如何安装配置Apache Web

这篇文章主要讲解了“CentOS7如何安装配置Apache Web”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“CentOS7如何安装配置Apache Web”吧!Apache Web 服务
2023-06-27

在CentOS7中安装和配置ssh

1. 安装openssh-serveAxekLHhOryum install -y openssl openssh-server2. 修改配置文件 用vim打开配置文件/etc/ssh/sshd_c
2022-06-04

centos7下YUM mysql5.7安装与配置

1、环境准备:安 装 环 境:CentOS Linux release 7.7.1908 (Core)数据库版本:mysql 5.72、配置yum源:在MySQL官网中下载yum源就是rpm包地址:https://dev.mysql.com/downloads
centos7下YUM mysql5.7安装与配置
2019-10-09

CentOS7下如何安装配置Docker

这篇“CentOS7下如何安装配置Docker”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“CentOS7下如何安装配置Do
2023-06-28

Centos7上Mysql5.7的安装和配置

第一步:安装Mysql #获取MysqlYUM源wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm#查看下载的版本信息md5sum mysql57-communit
Centos7上Mysql5.7的安装和配置
2015-11-11

Centos7怎么安装和配置ElasticSearch

本篇内容主要讲解“Centos7怎么安装和配置ElasticSearch”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Centos7怎么安装和配置ElasticSearch”吧!实验环境:操作系
2023-06-05

CentOS7安装完之后的配置

静态IP地址设置1. 查找网卡名称,通过在控制台使用ip a,查看到网卡名称,例如:eno167779842. 使用vim打开相关配置文件:/etc/sysconfig/network-scripts/ifcfg-eno167779843.
2023-06-06

CentOS7中如何安装配置VNC Server

这篇文章给大家分享的是有关CentOS7中如何安装配置VNC Server的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。需要使用Linux的远程桌面服务,xmanager之前用过,感觉一般,这次尝试下VNC。我的
2023-06-10

centos7中怎么安装及配置Docker

这篇文章主要介绍“centos7中怎么安装及配置Docker”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“centos7中怎么安装及配置Docker”文章能帮助大家解决问题。第一步,确定是cento
2023-06-27

CentOS7中怎么安装和配置PHP

在CentOS7中安装和配置PHP可以通过以下步骤完成:安装PHP:使用yum包管理器安装PHP,可以运行以下命令:sudo yum install php安装PHP扩展模块:如果需要使用特定的PHP扩展模块,可以使用yum包管理器安装相应
CentOS7中怎么安装和配置PHP
2024-03-04

编程热搜

目录