Some kind of error resported here Installing PG gem on OS X – failure to build native extension
To install dependencies on Ubuntu try this:
sudo apt-get install libpq-dev
and this
gem install pg
More Related Contents:
- Postgres could not connect to server
- Can not connect to local PostgreSQL
- Rails: Installing PG gem on OS X – failure to build native extension
- Repairing Postgresql after upgrading to OSX 10.7 Lion
- GroupingError: ERROR: column must appear in the GROUP BY clause or be used in an aggregate function
- New data not persisting to Rails array column on Postgres
- Rails: PG::UndefinedTable: ERROR: relation “…” does not exist
- Can’t install pg gem on Mountain Lion
- Cannot install pg gem in Mavericks with Postgres.app
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- Can’t find the ‘libpq-fe.h header when trying to install pg gem
- PostgreSQL gapless sequences
- PG::ConnectionBad – could not connect to server: Connection refused
- Disable ActiveRecord for Rails 4
- ActiveRecord OR query Hash notation
- How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”
- Rails 4 image-path, image-url and asset-url no longer work in SCSS files
- Rails 4: organize rails models in sub path without namespacing models?
- docker postgres with initial data is not persisted over commits
- Rails 4 nested attributes and has_many :through associaton in a form
- How do I use RVM and create globally available gems?
- Rails 4, how to correctly configure smtp settings (gmail)
- Can I write PostgreSQL functions on Ruby on Rails?
- Getting a “bad interpreter” error when using brew
- Store the day of the week and time?
- Rails 4 – Gem::LoadError: Specified ‘mysql2’ for database adapter, but the gem is not loaded
- Rails: FATAL – Peer authentication failed for user (PG::Error)
- macOS, Rails: “Failed to build gem native extension”
- Upgrading from Rails 2.3.8 to 4.0
- Is puma the ONLY multi-threaded rails 4 http server?