I'm on a Mac building an app in Rails 3 with PostgreSQL...
PostgreSQL is working fine but in the command line I get the following error:
$ pg_config
-bash: pg_config: command not found
Anyone know how to get this setup so I can run pg_config?
Thanks
In addition to installing
postgresql-devel
I had to modify thePATH
environment variable. E.g. add this to your.bashrc
:My problem was that
pg_config
was not in the PATH. So, I first needed to search forpg_config
's path by usingAfter noting the path, I used this command to install pg gem
That installed
pg
successfully. The system was a CentOS.you can install postgresql-devel to get that. in rpm based distro
will work
or use
to get the exact package
pg_config
comes with the development files for PostgreSQL. Go to where you got the server daemon from and look for them there.i have a CentOS 5.11 with postgres 9.0, and python 2.4 , python 2.6 to run openERP 6, trying to install the psycopg2 i allways get the error:
from :how to install pg_config Later i do :
i get a list, where we can find
but if i try to install, its already installed So i use
later you need install the rigth vertion, for your architecture(32bit or 64bit), in my case was:
then update
and finally install psycopg2 with pip
pip install psycopg2