In order to develop one web application based on postgresql, i need to install libpq on my centos.
I can install it by "apt-get install libpq-dev" on ubuntu, but i can not install it on centos by "yum install libpq".
Who can tell me how to install it, thanks!
I just had to install this on my CentOS 6 server since psycopg2 required pg_config. Boo yah:
Update
If you still encounter issues with pg_config, you may need to add it to your PATH, e.g.:
where x.x is your version, such as /usr/pgsql-9.2./bin.
The package is called
postgresql-libs
on Red Hat and derived distributions.It is
libpqxx
:You can install it from rpmforge or epel repo: