Ubuntu中安装pgasync的问题

从http://jamwt.com/pgasync/下载该包,安装其安装的教程执行命令:sudo python setup.py install 

然而,出现一下问题: 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/pgasync
copying pgasync/__init__.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/pool.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/pgtypes_int.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/protocol.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/format.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/net.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/fe.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/errors.py -> build/lib.linux-i686-2.5/pgasync
copying pgasync/pgtypes.py -> build/lib.linux-i686-2.5/pgasync
running build_ext
building 'pgasync.cache' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/pgasync
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c pgasync/cache.c -o build/temp.linux-i686-2.5/pgasync/cache.o
pgasync/cache.c:3:20: error: Python.h: No such file or directory
pgasync/cache.c:4:26: error: structmember.h: No such file or directory
pgasync/cache.c:13: error: expected specifier-qualifier-list before ‘PyObject’
pgasync/cache.c:14: error: expected specifier-qualifier-list before ‘PyObject’
pgasync/cache.c:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:16: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:17: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:19: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:23: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:24: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:25: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:29: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:30: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
pgasync/cache.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
pgasync/cache.c:49: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
pgasync/cache.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:59: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:60: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:130: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:132: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:318: error: ‘__pyx_n_append’ undeclared here (not in a function)
pgasync/cache.c:318: warning: excess elements in struct initializer
pgasync/cache.c:318: warning: (near initialization for ‘__pyx_intern_tab[0]’)
pgasync/cache.c:318: warning: excess elements in struct initializer
pgasync/cache.c:318: warning: (near initialization for ‘__pyx_intern_tab[0]’)
pgasync/cache.c:319: error: ‘__pyx_n_realloc’ undeclared here (not in a function)
pgasync/cache.c:319: warning: excess elements in struct initializer
pgasync/cache.c:319: warning: (near initialization for ‘__pyx_intern_tab[1]’)
pgasync/cache.c:319: warning: excess elements in struct initializer
pgasync/cache.c:319: warning: (near initialization for ‘__pyx_intern_tab[1]’)
pgasync/cache.c:320: warning: excess elements in struct initializer
pgasync/cache.c:320: warning: (near initialization for ‘__pyx_intern_tab[2]’)
pgasync/cache.c:320: warning: excess elements in struct initializer
pgasync/cache.c:320: warning: (near initialization for ‘__pyx_intern_tab[2]’)
pgasync/cache.c:323: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pgasync/cache.c:333: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:339: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:348: error: expected ‘)’ before ‘*’ token
pgasync/cache.c:355: error: array type has incomplete element type
pgasync/cache.c:356: error: ‘PyCFunction’ undeclared here (not in a function)
pgasync/cache.c:356: error: expected ‘}’ before ‘__pyx_f_5cache_5Cache_realloc’
pgasync/cache.c:357: error: expected ‘}’ before ‘__pyx_f_5cache_5Cache_add’
pgasync/cache.c:358: error: expected ‘}’ before ‘__pyx_f_5cache_5Cache_finish’
pgasync/cache.c:362: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_tp_as_number_Cache’
pgasync/cache.c:403: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_tp_as_sequence_Cache’
pgasync/cache.c:416: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_tp_as_mapping_Cache’
pgasync/cache.c:422: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_tp_as_buffer_Cache’
pgasync/cache.c:429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
pgasync/cache.c:478: error: array type has incomplete element type
pgasync/cache.c:482: warning: return type defaults to ‘int’
pgasync/cache.c: In function ‘DL_EXPORT’:
pgasync/cache.c:482: error: expected declaration specifiers before ‘initcache’
pgasync/cache.c:483: error: expected declaration specifiers before ‘DL_EXPORT’
pgasync/cache.c:501: error: storage class specified for parameter ‘__pyx_filenames’
pgasync/cache.c:501: error: parameter ‘__pyx_filenames’ is initialized
pgasync/cache.c:502: warning: initialization from incompatible pointer type
pgasync/cache.c:504: error: expected declaration specifiers before ‘statichere’
pgasync/cache.c:508: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
pgasync/cache.c:518:21: error: compile.h: No such file or directory
pgasync/cache.c:519:25: error: frameobject.h: No such file or directory
pgasync/cache.c:520:23: error: traceback.h: No such file or directory
pgasync/cache.c:522: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
pgasync/cache.c:574: error: old-style parameter declarations in prototyped function definition
pgasync/cache.c:574: error: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Google了一把,发现是因为Ubuntu下gcc存在一些问题,并且缺失python.h文件,因此执行以下命令:

1. sudo apt-get install python-dev
从而补充python.h文件

2.sudo apt-get install build-essential
将c编译器补充完整。

再次执行开始的命令,安装虽然仍然有警告,但是成功。

chmod: changing permissions of `/u01/app/oracle/product/11.2.0/dbhome_1/bin/extjobO‘: Operation not oracle 11.2.0.4安装psu 29141056,日志末尾抛出报错 Patching component oracle.ctx, 11.2.0.4.0... Applying sub-patch '29141056' to OH '/u01/app/oracle/product/11.2.0/dbhome_1' Patching component oracle.rdbms, 11.2.0.4.0... Patching component oracle.rdbms.rman, 11.2.0. 阅读详情

相关推荐

【科普知识】什么是驱控一体化伺服电机?

驱控一体化伺服电机以其高度的集成性、兼容性、便捷性以及卓越的性能表现,成为了现代工业自动化领域的一颗璀璨明珠。对于那些追求高效、精准、智能控制的行业用户而言,它无疑是一种理想的选择。

m0_46512607的博客 3151

PGSync安装使用教程(PostgreSQL数据实时同步至Elasticsearch)

pgsync项目有两个,一个是的,用于pgsql之间的数据同步,另一个是的,用于pgsql的数据同步至es,本教程适用于第二个项目。pgsync应该是目前为止唯二支持es8的数据同步工具,另一个是canal,但是canal数据源只支持mysql。另外还有个flink cdc,数据源同时支持mysql和pgsql,但是只支持到es7,前几个月更新了es8的流驱动,flink sql es8的驱动应该也快了(

Variazioni的博客 2867

【调试记录】GT ip跑aurora 64b66b协议

如果不用,会出现这种情况:自回环测试,数据收发ok.一旦和对方通信,对方接收的就是一堆乱码,因为GT链路发送数据不能是全1或全0,或者长时间的1或0.否则线路容易受到干扰,毕竟线速率10多G,用了加扰和解扰,就可以提高抗干扰能力。64B66B编码,数据输入是64bit,输出是66bit,所以这之间存在着2bit的带宽差,Gearbox 就是用来解决这种差异的,实现方式是:将66bit数据拿出来2bit先存入Gearbox,然后输出64bit.发送同步码或控制数据时,配置成2.2.4 加扰和解扰!

weixin_41246509的博客 1602

PGSync: 数据从PostgreSQL到Elasticsearch/OpenSearch同步工具

PGSync 是一个用于将数据从 PostgreSQL 同步到 Elasticsearch 或 OpenSearch 的中间件工具。它允许你在保持 PostgreSQL 作为数据源的同时,在 Elasticsearch 中提供结构化的去规范化文档。当你在数据库中进行修改时,PGSync 可以自动更新 Elasticsearch 中对应的文档。通过描述你的数据模式或JSON配置,PGSync 能够自...

gitblog_00389的博客 1506

Hadoop实战:用MapReduce分析YouTube视频数据集(附完整代码)

本文提供了一个完整的Hadoop MapReduce实战教程,指导读者使用MapReduce框架分析YouTube视频数据集,统计不同视频类别的数量分布。教程涵盖从数据获取、预处理、HDFS操作到Java代码编写、作业提交及结果可视化的全流程,并附有完整代码,帮助开发者深入理解分布式计算思想。

lilh34434的博客 198

[捷稀 JCG Q30 Pro 刷机说明] 以刷入openwrt24.10为例

摘要: 本文详细介绍了捷稀JCG Q30 Pro路由器刷入OpenWrt 24.10系统的步骤。通过先刷入OpenWrt 23.05过渡固件,再升级Uboot,最后通过TFTP加载工厂镜像完成刷机。关键步骤包括解锁分区、刷写Uboot、进入恢复模式及配置网络。文章还提供了无线设置、Tailscale内网穿透等进阶命令,并附参考文档和固件下载链接。适用于有一定技术基础的玩家,需注意操作风险,严格按流程执行。

贤时间 7138

两台ubuntu 服务器之间,文件通过sync服务同步

前提:两台ubuntu服务器,且两台服务器之间通信正常。服务器需要同步的文件做好备份。两台服务器IP分别为:192.168.1.20 和 192.168.1.30首先,用lsof -i:873命令,查看端口873有没有被服务占用,如果出现如下显示,则表明sync服务已经安装。如果没有安装sync服务的服务器,请通过执行apt-get install sync安装服务,如果是centos服务器,请使

心随梦飞 6895

由JavaScript版迷宫游戏引出Java版迷宫地图生成器

Java案例:迷宫地图生成器 一、引入问题 本期18软件1班网页脚本实训项目是完成一个JavaScript版迷宫游戏。 迷宫地图是如何生成的呢?很简单,将一个正方形区域等分为若干行与若干列,比如25行25列,这样就有625个单元格,用一个二维数组map[25][25]就可以保存625个单元格信息,map[i][j] = 1表示该单元格要绘制砖,而map[i][j] = 0表示该单元格不绘制砖。 ...

howard2005的专栏 1473

安装ubuntu系统操作系统详细流程、ubuntu管理包命令apt和dpkg命令详细说明、一键部署openstack环境、DBeaver下载驱动报错和登录提示RSA public key.. 解决方法

准备修改数据库keystone的一个镜像数据值,当前默认为1000,如果不修改的话我们用命令上传镜像超过1000M的就会失败,如果通过网页上传就不影响。一切正常以后,就可以再次创建一个快照【下面环境glans值改完以后再创建快照】,最主要用途其实就是后面做实验后可以恢复到刚装好的状态。选择none回车后再弹窗窗口选择continue回车【这里只是提示,磁盘将格式化,下一步后将无法后退,问是否继续】。硬件兼容性我选择12是因为我服务器上的vmware的版本是12,所以我才选择12,你可以直接默认你当前版本。

崔崇鑫的博客,你linux/云运维工作中的百科全书。 2994

精通 Android NDK/JNI:从入门到精通实战与面试精粹

在Android开发中,

郑伟强dev的专栏 144

全志F1C200S嵌入式驱动开发(lcd屏幕驱动)

【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】 lcd RGB屏幕作为比较经济、实用的显示工具,在实际场景中使用较多。它的信号来说,一般也比较简单,除了常规的数据信号,剩下来就是行同步、场同步、数据使能和时钟信号了。数据信号方面,常见的格式有RGB888、RGB666、RGB565。为什么有什么多选择,主要还是取决于soc pin脚的多少来定。当然,pin脚越多,显示的颜色就越精准,还原度就越高。 举例来说,假设

嵌入式-老费,一个分享专业嵌入式知识的blog 2794

asyncpg 项目常见问题解决方案

asyncpg 是一个专为 PostgreSQL 数据库设计的高性能 Python 客户端库,特别适用于 Python 的 asyncio 框架。该项目通过实现 PostgreSQL 服务器的二进制协议,提供了高效、简洁的接口,使得与 PostgreSQL 数据库的交互更加便捷。asyncpg 支持 Python 3.8 及以上版本,并且兼容 PostgreSQL 9.5 到 17 版本。 ##...

gitblog_00589的博客 1239

11、基于STM32的智能药盒

当今时代是一个新技术层出不穷的时代,在电子领域尤其是自动化智能控制领域,传统的分立元件或数字逻辑电路构成的控制系统,正以前所未有的速度被单片机智能控制系统所取代。嵌入式具有体积小、功能强、成本低、应用面广等优点,可以说,智能控制与自动控制的核心就是单片机。

行走的皮卡丘 6103

asyncpg数据库驱动安装指南:从基础到高级配置

asyncpg是Python生态中高性能的PostgreSQL异步数据库驱动,专为asyncio框架设计。相比传统的数据库连接方式,asyncpg在性能上有显著优势,特别适合高并发场景。本文将详细介绍asyncpg的安装过程,包括基础安装、GSSAPI/SSPI认证支持、源码编译以及测试环境搭建。 ## 基础安装 对于大多数用户来说,asyncpg的安装非常简单,因为它没有外部依赖(除非需要使...

gitblog_00045的博客 527

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

安装Ubuntu后必须要做的几件事(二)--开发工具篇

安装完善的编辑套件讲开发没有编译器,那么一切都是浮云。 Ubunto默认是不安装g++的sudo apt-get install build-essential下面这些看自己爱好: 安装词法和语法分析器sudo apt-get install flex sudo apt-get install bison编辑器vim(编辑器之神 & 黑客的编辑器)当然您也可以选择emacs,关于他们哪个好我已经

OSKernelLAB(gatieme) 3万+

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

浅谈Async/Await

概要在很长一段时间里面,FE们不得不依靠回调来处理异步代码。使用回调的结果是,代码变得很纠结,不便于理解与维护,值得庆幸的是Promise带来了.then(),让代码变得井然有序,便于管理。于是我们大量使用,代替了原来的回调方式。但是不存在一种方法可以让当前的执行流程阻塞直到promise完成。JS里面,我们无法直接原地等promise完成,唯一可以用于提前计划promise完成后的执行逻辑的方式

大转转FE 786

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

强大的async.auto!

以前在阅读Async JavaScript Build More Responsive Apps with Less Code一书的时候,认识了Async库!开始的时候,没有体会async的魅力,直到最近用NodeJs写网站的时候,才发现,如果不用async,写出来的代码简直没法看。所以在中后期,我大量使用了Parallel和waterfull,但是写出来的代码仍旧比较凌乱,最近才发现as...

weixin_30920513的博客 253

Ubuntu下安装配置rsync

Rsync(remote synchronize) 是一个远程数据同步工具,可以使用“Rsync算法”同步本地和远程主机之间的文件。Rsync的好处是只同步两个文件不同的部分,相同的部分不在传递。类似于增量备份,这使的在服务器传递备份文件或者同步文件,比起scp工具要省好多时间。 OS:        ubuntu server 14.04 server:  192.168.64.128 c

三丰的专栏 2万+

async太好用了,用了两个小时写的代码

/* 从5442网站上把所有的热门推荐下载下来 async+cheerio+request */ const util = require('util'); const request = require('request'); const http = require('http'); const fs = require('fs'); const cheerio = require('ch

davidsu33的专栏 6438

asyncpg 安装和配置指南

asyncpg 是一个专为 PostgreSQL 数据库设计的高性能客户端库,适用于 Python 的 asyncio 框架。它通过直接实现 PostgreSQL 服务器的二进制协议,提供了比传统数据库接口更高效的性能。asyncpg 主要使用 Python 语言编写,适用于 Python 3.8 及以上版本。 ## 2. 项目使用的关键技术和框架 asyncpg 项目主要使用了以下关键技术和...

gitblog_01222的博客 1371

linux async 目录同步,通过tunasync搭建镜像源仓库

tunasync是清华大学TUNA镜像源目前使用的镜像方案,github地址:https://github.com/tuna/tunasync当前以CentOS7系统为例,搭建一个基于内网的镜像仓库,建议硬盘至少2T以上,同步速度与网络带宽、磁盘读写速度有关!1、安装依赖yum install rsync wget1yuminstallrsyncwget2、下载tunasyncwget https...

weixin_32187037的博客 1359

【EPICS】在Ubuntu下安装epics及Asyn、Streamdevice工具包

本文介绍了在Ubuntu下安装控制系统epics的流程、安装asyn和StreamDevice的流程。并通过一个简易的IOC案例让大家了解epics。

weixin_45937014的博客 6213

linux async 目录同步,Linux文件同步工具sulasync的开始篇章...

接下来的一段时间里,就要开始一个我的新项目,linux下的文件同步工具——sulaSync。这一篇简单介绍我们所要的需求。一.功能说明1:(P1)文件同步:能将Server端的文件传输至Client端的某个目录(P1)软件安装:能触发一个或者多个主机通过apt或者yum安装指定的软件包(P1)软件升级:能触发一个或者多个主机通过apt或者yum进行软件包的升级(P1)整个系统要有日志功能(P1)插...

weixin_32549267的博客 1096

python mysql python.h_MySQLdb: Python.h: No such file or directory

Extract it and run:python setup.py buildsudo python setup.py installIf you get this error you need to install python-dev package:In file included from _mysql.c:29:pymemcompat.h:10:20: error: Python.h:...

weixin_33612966的博客 225

_mysql.c:29:20: error: Python.h: No such file or directory

在Centos系统中安装 pip install MySQL-python 提示:   _mysql.c:29:20: error: Python.h: No such file or directory_mysql.c:40:26: error: structmember.h: No such file or directory 解决方法:yum install python-devel...

weixin_34361881的博客 2028

ubuntu 自带的python3.5.2 安装aiohttp异步请求库

ubuntu16 自带的python默认是3.5.2 但是async的一些新特性也正式python3.5后加入的,刚刚在这个门槛   今天在服务器上的一个项目 需要使用aiohttp来进行异步请求  但是使用pip3 install aiohttp   会报错  aiohttp requires Python '>=3.5.3' but the running Python is 3...

mzbqhbc12的博客 1040
上一篇: Ubuntu中安装pgasync的问题
下一篇: Ubuntu中samba的安装与配置
pythoner
博客等级 码龄18年 15粉丝 89原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值