Error when bundle install

Overview

This section describes the error that occurred when bundle install gem in Rails application and how to solve it.

environment

Ruby 2.6.5 Ruby on Rails 6.0.0

Contents

Error statement

An error occurred while installing pg (1.2.3), and Bundler cannot
continue.
Make sure that `gem install pg -v '1.2.3' --source 'https://rubygems.org/'`
succeeds before bundling.

When

Could not find gem 'pg (>= 0.18, < 2.0)' in any of the gem sources listed in your Gemfile.

It is an error such as.

How to solve

It was solved by the following command.

brew install postgres

It seems that I was stuck in postgresQL.

Recommended Posts

Error when bundle install
bundle install error
Error in bundle install when running rails new
composer install error
When semantic-ui install fails
Error with bundle install after upgrading to Catalina
Mac Rails Install Error
What to do if an error occurs when nokogiri enters when bundle install
Error when deploying EC2
About the error caused by bundle install ~ puma Gem ~
bundle install does not install mysql2
Error when playing with java
Difference between bundle and bundle install
Error when using rails capybara
SpringBoot + Mybatis error when booting
Error when introducing SNS authentication
After setting database to mysql, bundle install causes an error
What to do if mysql2 gets a bundle install error
Error when deploying EC2 on CircleCI
mysql2 fails to install with bundle install
[Rails 6] MySQL 2 cannot be bundle install
I don't see an error in Rails bundle install ... the solution
About error when implementing spring validation
Add gem'rails-i18n','~> 6.0.0' and what to do if bundle install gives an error
I get an error with bundle install and puma cannot be installed.
When building rails6 environment on Ubuntu, it gets stuck with bundle install
Copying the repository and getting a mysql2 error on the first bundle install
[Memo] Difference between bundle install and update
Error when building infrastructure with aws app
bundle install? yarn install? What are you doing
Error in implementation when implementing Spring validation
Error when starting eclipse after upgrading JDK
A reminder when an aapt.exe error occurs
Javaw.exe error when starting Spring Boot (STS)