PostgreSQL - pg_config -bash: pg_config: command not found
问题 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 回答1: you can install postgresql-devel to get that. in rpm based distro yum install postgresql-devel will work or use yum provides "*/pg_config" to get the exact package 回答2: In addition to installing postgresql-devel I had to modify the PATH