linux 安装python的postgres库
来源:互联网 发布:自学java看什么书 知乎 编辑:程序博客网 时间:2024/06/05 19:56
PyGreSQL-4.0]# python setup.py build
sh: pg_config: command not found
Traceback (most recent call last):
File "setup.py", line 95, in <module>
pg_include_dir = pg_config('/usr/local/pgsql/include')
File "setup.py", line 56, in pg_config
raise Exception("pg_config tool is not available.")
Exception: pg_config tool is not available.
处理:
export
export PATH=$PATH:/usr/local/pgsql/bin/
pg_config
python stepup.py build
python setup.py install
问题:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/python2.3/site-packages/pg.py", line 21, in ?
from _pg import *
ImportError: libpq.so.5: cannot open shared object file: No such file or directory
解决:
cd /etc/ld.so.conf.decho "/usr/local/pgsql/lib" >>pgsql.conf
ldconfig
可能也可以:未试
# nano /etc/profile
在 unset i前面添加环境变量
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
# source /etc/profile
- linux 安装python的postgres库
- Postgres Linux下安装
- Linux-05安装Postgres
- postgres与pgpool的安装
- Linux 下安装postgres 安装教程
- 在LINUX下安装postgres数据库
- linux安装配置postgres及使用dblink
- 连接Python Postgres。。。 一个艰巨的任务
- uPortal的安装并集成postgres数据库
- odoo和postgres的安装配置
- linux中postgres的备份脚本
- linux 下 postgres 的使用总结
- Linux下安装PPAS(Postgres Plus Advanced Server)
- 在linux (CentOs7)上安装Postgres-xc
- Postgres的安装可能遇到的问题(POSTGRES无法启动,端口号5423)
- python操作postgres数据库
- 【Python】Linux下python科学计算库的安装
- Postgres数据库安装
- 寻找马鞍点
- strcmp 使用说明
- JDBC连接oracle 10g express Edition 的时候报错error while performing database login with ** driver
- 3D Cross-Platform 3rd Person Shooter - To Intel x86 Android
- 【数据结构】选择排序
- linux 安装python的postgres库
- Android屏幕亮度调节
- FileUtiles文件上传
- android 多媒体部分学习笔记十五-----视频录制
- windows下访问Ext2/Ext3的一些解决方案
- Oracle:删除监听服务
- AfxMessageBox
- 静静的在心里承受所有的伤痛和不快乐
- HDU 2102 双层bfs