lar*_*rry 59 postgresql centos yum
为了开发一个基于 postgresql 的 web 应用程序,我需要在我的 centos 上安装 libpq。
我可以在 ubuntu 上通过“apt-get install libpq-dev”安装它,但我不能通过“yum install libpq”在centos上安装它。
谁能告诉我怎么安装,谢谢!
Ban*_*jer 89
我只需要在我的 CentOS 6 服务器上安装它,因为 psycopg2 需要 pg_config。呸呸呸:
yum install postgresql-devel
Run Code Online (Sandbox Code Playgroud)
更新
如果您仍然遇到 pg_config 问题,您可能需要将其添加到您的 PATH,例如:
export PATH=$PATH:/usr/pgsql-x.x/bin
Run Code Online (Sandbox Code Playgroud)
其中 xx 是您的版本,例如 /usr/pgsql-9.2./bin。
Pet*_*aut 58
该软件包postgresql-libs在 Red Hat 和派生发行版上调用。
它是libpqxx:
Name : libpqxx-devel
Arch : x86_64
Version : 2.6.9
Release : 3.el5.rf
Size : 1.4 M
Repo : rpmforge
Summary : Header files, libraries and development documentation for libpqxx.
URL : http://pqxx.org/
License : BSD
Description: This package contains the header files, static libraries and development
: documentation for libpqxx. If you like to develop programs using libpqxx,
: you will need to install libpqxx-devel.
Run Code Online (Sandbox Code Playgroud)
# yum install libpqxx-devel
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
79066 次 |
| 最近记录: |