rcr*_*soe 14 ruby ruby-on-rails bundler
我已经看到这种情况一百万次了,但是我通常的修复和 stackoverflow 建议这次不起作用。
当我运行时bundle install,它在 pg 处失败:
An error occurred while installing pg (1.2.3), and Bundler cannot
continue.
Run Code Online (Sandbox Code Playgroud)
过去,我通过先运行gem install bundler然后再运行来解决这个问题bundle install。这次,没有运气。有什么建议么?
rcr*_*soe 14
当然,当我发布这篇文章时,我发现了另一个 stackoverflow 问题的解决方案。
这做到了这一点:
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
Run Code Online (Sandbox Code Playgroud)