I had this problem, this worked for me:
Install the postgresql-devel package, this will solve the issue of pg_config missing.
sudo apt-get install libpq-dev
More Related Contents:
- Mysql2::Error::ConnectionError: Access denied for user
- bundle install fails with SSL certificate verification error
- ‘sudo gem install’ or ‘gem install’ and gem locations
- no such file to load — rubygems (LoadError)
- How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”
- Nokogiri installation fails -libxml2 is missing
- How do I “activate” a different version of a particular gem?
- How to use bundler behind a proxy?
- How do I use RVM and create globally available gems?
- How can I specify a local gem in my Gemfile?
- Convert HTML to word file ?
- How do I display Ruby on Rails form validation error messages one at a time?
- How do I use gems with Ubuntu?
- nokogiri gem installation error
- Ruby: problem installing EventMachine under Windows 7
- “gem install rails” fails with DNS error
- String.force_encoding() in Ruby 1.8.7 (or Rails 2.x)
- Failed to build gem native extension — Rails install
- Why can’t I install the SQLite gem?
- macOS, Rails: “Failed to build gem native extension”
- sqlite3 gem fails to install
- How to fix “Your Ruby version is 2.3.0, but your Gemfile specified 2.2.5” while server starting
- Ruby 1.9.2 and Rails 3 cannot open rails console
- Ruby 1.9.2 how to install RMagick on Windows?
- Unable to install MySQL2 gem on Windows 7
- Difference between attr_accessor and attr_accessible
- Rails model without database
- How to save a base64 string as an image using ruby
- Ruby on Rails 3 howto make ‘OR’ condition
- using has_many :through and build