Ubuntu中安装pgasync的问题
来源:互联网 发布:cms客户端管理软件 编辑:程序博客网 时间:2024/06/05 04:57
从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编译器补充完整。
再次执行开始的命令,安装虽然仍然有警告,但是成功。
- Ubuntu中安装pgasync的问题
- Ubuntu中flash player安装的问题
- 关于ubuntu中vim安装的问题
- ubuntu中安装virtualbox碰到的问题
- 虚拟机中安装ubuntu遇到的问题
- 关于安装ubuntu中Firefox安装flash的问题
- 在Ubuntu中安装问题
- Ubuntu中安装eldk要注意的问题[原创]
- Vmware中安装Ubuntu共享文件夹找不到的问题
- Ubuntu 中安装vmware tools 遇到的问题
- 在UBUNTU中安装NS2遇到的问题
- Vmware中安装Ubuntu共享文件夹找不到的问题 .
- VMware虚拟机中ubuntu安装VMware tools遇到的问题
- VMware中安装Ubuntu共享文件夹找不到的问题
- ubuntu中安装vmware-tool遇到的一个问题
- ubuntu下vsftpd安装过程中遇到的问题总结
- 解决在ubuntu系统中安装Chrome失败的问题
- 在安装 Ubuntu 14.04 中可能遇到的问题
- bloggie.....first..
- Spring 中的 Bean Scope
- 强大的素数算法
- 毕业设计日志
- 判断否为素数 c++
- Ubuntu中安装pgasync的问题
- 发生发生
- linux学习笔记11-电子邮件服务器
- 遐想:Web 3.0的创新:现在你的其它的电脑就是一个数据中心
- xixi 原创 试试
- 【转】睡得越少,活的越久?
- Ubuntu中samba的安装与配置
- Java 2 EE 开发初体验
- [转]早上第一杯水该怎么喝