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
How to Use Redis in a Multi-Threaded Rails Environment? (Puma/Sidekiq)
Ruby: Proc.New { 'Waffles' } VS. Proc { 'Waffles' }
Class Method VS Constant in Ruby/Rails
Bundler Could Not Find Compatible Versions for Gem "Bundler":
How to Check Whether a Value in a String Is an Ip Address
Why Does Accessing a Ssl Site with Mechanize on Windows Fail, But on MAC Work
Iconv Deprecation Warning with Ruby 1.9.3
Uninitialized Constant Rake::Dsl in Ruby Gem
How to Remove Ruby from Ubuntu
Making Multiple Http Requests Asynchronously
Writing Over Previously Output Lines in the Command Prompt with Ruby
Repairing Postgresql After Upgrade to Osx Mavericks
Devise Custom Messages When Validation Fails