You probably have the wrong path for --with-pg-config
, check if it’s actually there.
You can find the correct path to pg_config
with:
find /Applications -name pg_config
In the latest Postgres.app Version the path is:
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.5/bin/pg_config
More Related Contents:
- Can’t find the ‘libpq-fe.h header when trying to install pg gem
- Postgres could not connect to server
- Can not connect to local PostgreSQL
- Rails: Installing PG gem on OS X – failure to build native extension
- Rails 3 – can’t install pg gem
- Repairing Postgresql after upgrading to OSX 10.7 Lion
- Impossible to Install PG gem on my mac with Mavericks
- “gem install therubyracer -v ‘0.10.2’” on osx mavericks not installing
- ERROR: Failed to build gem native extension on Mavericks
- Can’t install pg gem on Mountain Lion
- An error occurred while installing pg (0.17.1), and Bundler cannot continue
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
- PG::Error: SELECT DISTINCT, ORDER BY expressions must appear in select list
- Generic Ruby solution for SQLite3 “LIKE” or PostgreSQL “ILIKE”?
- Change from SQLite to PostgreSQL in a fresh Rails project
- Heroku Postgres Error: PGError: ERROR: relation “organizations” does not exist (ActiveRecord::StatementInvalid)
- how to solve “ruby installation is missing psych” error?
- GroupingError: ERROR: column must appear in the GROUP BY clause or be used in an aggregate function
- docker postgres with initial data is not persisted over commits
- Why can’t I install Rails on Lion using RVM?
- Installing Postgres on windows for use with Ruby-on-Rails
- Creating a PostgreSQL sequence to a field (which is not the ID of the record)
- Rails auto-assigning id that already exists
- Rails: PG::UndefinedTable: ERROR: relation “…” does not exist
- Getting a “bad interpreter” error when using brew
- Rails Migrations: tried to change the type of column from string to integer
- PGError: ERROR: aggregates not allowed in WHERE clause on a AR query of an object and its has_many objects
- Adding foreign key to a rails model
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?