【发布时间】:2021-05-13 07:59:18
【问题描述】:
我已经看过一百万次了,但是这次我通常的修复和 stackoverflow 建议都不起作用了。
当我运行 bundle install 时,它在 pg 处失败:
An error occurred while installing pg (1.2.3), and Bundler cannot
continue.
过去,我通过先运行 gem install bundler 再运行 bundle install 来解决此问题。这一次,运气不好。有什么建议吗?
【问题讨论】:
-
您很可能需要先安装 postgresql 才能在上面安装 gem。我目前在 ubuntu 上安装 Postgresql 的最佳方法:blog.corsego.com/ruby-on-rails-install-postgresql
标签: ruby-on-rails ruby bundler