LoginSignup
50
29

More than 5 years have passed since last update.

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

Last updated at Posted at 2018-04-02

状況

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

で解決しました。

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

50
29
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
50
29