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
bundle install error
Error in bundle install when running rails new
Error when npm install on Windows 7
Error summary in bundle install. memorandum
composer install error
[Environment construction] Error when bundle install Errno :: EACCES: Permission denied @ dir_s_mkdir-
When semantic-ui install fails
Error when using SnapKit
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
When I changed to M1 mac, bundle install became impossible
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.
What to do and how to install when an error occurs in DXRuby 1.4.7
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 trying to use heroku command
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)