尝试在 OS X EL Capitan 上安装依赖于 metasploit 的 gem 时不断收到附加错误。已尝试重新安装 postgres 等,不知道如何解决此问题。
An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.
尝试在 OS X EL Capitan 上安装依赖于 metasploit 的 gem 时不断收到附加错误。已尝试重新安装 postgres 等,不知道如何解决此问题。
An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.
我遇到了同样的问题,以下步骤对我来说很神奇,
首先是像在 Mac OX 上一样更新 Xcode 工具。
然后通过Homebrew
. (这里是指南的链接)
你需要先卸载它,
brew uninstall postgresql
或者你可以更新它
brew update
并重新安装
冲泡安装postgresql
现在可以运行了,gem install pg
成功了。
如果我遗漏了什么,请告诉我。
1) install postgresql
2) install postgresql-dev
2) install gem install pg