error: command 'gcc' failed with exit status when installing psycopg2
来源:互联网 发布:易语言盗号源码2016 编辑:程序博客网 时间:2024/05/18 01:08
[root@server01 ~]# easy_install psycopg2 Searching for psycopg2 Reading http://pypi.python.org/simple/psycopg2/ Reading http://initd.org/psycopg/ Reading http://initd.org/projects/psycopg2 Best match: psycopg2 2.4.5 Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz Processing psycopg2-2.4.5.tar.gz Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-anWVvJ/psycopg2-2.4.5/egg-dist-tmp-cZbdtnno previously-included directories found matching 'doc/src/_build' In file included from psycopg/psycopgmodule.c:27:./psycopg/psycopg.h:31:22: error: libpq-fe.h: No such file or directory In file included from psycopg/psycopgmodule.c:29:...error: Setup script exited with error: command 'gcc' failed with exit status 1
ok
For the case of CentOS, I had this very same problem, that I solved installing these packages:
sudo yum install postgresql-libssudo yum install postgresql-develsudo yum install python-devel
only then, I was able to perform successfully:
sudo easy_install psycopg2
0 0
- error: command 'gcc' failed with exit status when installing psycopg2
- command 'gcc' failed with exit status 1 error while installing scrapy
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1 解决方法
- error: command 'gcc' failed with exit status 1 的解决办法
- 【centos】 error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1 的解决办法
- centos---error: command 'gcc' failed with exit status 1
- error: command ‘gcc’ failed with exit status 1
- error: command 'gcc' failed with exit status 1
- 【centos】 error command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- 【centos】 error: command 'gcc' failed with exit status
- error: command 'gcc' failed with exit status 1 的解决办法
- 浅谈 PHP 与手机 APP 开发(API 接口开发)
- 在SecureCRT中向linux上传和下载文件
- uva753(一般图匹配)
- NSDate NSDateFormatter 转化格式
- c++ Mutable
- error: command 'gcc' failed with exit status when installing psycopg2
- C++ Built-in Operators, Precedence and Associativity
- android开发桌面控件之液晶时钟
- 通俗的解释进程和线程
- Hololens 学习摘要及翻译记录 二 World coordinates
- Android学习日记(yzy):集成布局和滑动效果的实现
- 图片格式转换
- android 相对布局属性
- IOS 嵌入 u3d 的步骤