Trouble installing pg gem

霸气de小男生 提交于 2019-11-28 21:49:25

Not sure which of the following steps finally cleared this issue up. But as mu is too short mentioned, the problem was mixing 32bit and 64bit binaries.

  • 1st, I installed this 64-bit version of PostgreSQL
  • 2nd, I uninstalled any old Homebrew OpenSSL installation

    $ brew uninstall openssl

  • 3rd, I installed the 64-bit version of OpenSSL with Homebrew

    $ brew install --64-bit openssl

  • Lastly, when installing the pg gem, I changed the LDFLAGS to point to the 64-bit version of OpenSSL

    $ gem install pg -- --with-ldflags='-L/usr/local/Cellar/openssl/0.9.8s'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!