Trouble Installing Pg Gem

Rails pg gem, an error occurred while installing pg

I guess you don't have postgres installed in your system. You could either install postgresql via homebrew/macports or disable the installation of production gems with:

bundle install --without production

unable to install pg gem

Answered here:
Can't install pg gem on Windows

There is no Windows native version of
latest release of pg (0.10.0) released
yesterday, but if you install 0.9.0 it
should install binaries without
issues.

Rails - Gem Error while installing pg (1.1.3), and Bundler cannot continue

try instaling with pg-config like this:

gem install pg -v 1.1.3 -- --with-pg-config=/usr/pgsql-9.X/bin/pg_config.

In pg-config path mention the posgtres version installed in you're system.



Related Topics



Leave a reply



Submit