0

Keep getting the attached error when trying to install metasploit dependant gems on OS X EL Capitan. Have tried reinstalling postgres etc, not sure how to fix this is issue.

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.

Error

Kaznb21
  • 1
  • 3

2 Answers2

2

I had the same issue and following steps worked wonder for me,

  1. First thing is updating your Xcode Tools as you are on Mac OX.

  2. Then install Postgre via Homebrew. (Here is a link on guidelines)

You'll need to uninstall it first,

brew uninstall postgresql

or you can update it with

brew update
  1. And reinstall with

    brew install postgresql

  2. Now you can run, gem install pg successfully.

Let me know if I'm missing on something.

Nirupa
  • 787
  • 1
  • 8
  • 20
0
1) install postgresql
2) install postgresql-dev
2) install gem install pg
Alaa Aqeel
  • 615
  • 8
  • 16