Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
25
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

bundle installしたらgem install pgしてと言われたけど、素直にやっても解決しなかったときにやった方法

状況

herokuにアップする過程でGemfileを書き換えたのでbundle install しようとしたら失敗

An error occurred while installing pg (1.0.0), and Bundler cannot continue.
Make sure that gem install pg -v '1.0.0' succeeds before bundling.

と言われたので素直に

gem install pg -v '1.0.0'

とした後にbundle installしてみたものの、再度下記のエラーが返って来た。

An error occurred while installing pg (1.0.0), and Bundler cannot continue.
Make sure that gem install pg -v '1.0.0' succeeds before bundling.

ググってみたところ、ポスグレがinstallされていなかった模様。。

brew install postgresql

で解決しました。

こちらを参考にしました。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
25
Help us understand the problem. What are the problem?