Installing pg -v 0.17.1

一笑奈何 提交于 2019-11-29 08:07:48

Looks like you are missing pre-requisite libraries.

sudo apt-get install libpq-dev postgresql-devel

Then install pg

gem install pg

For those on OS X, I recommend using home-brew to install:

brew install postgresql

More info at Homebrew's site, if you're not already a user, including how to set it up.

in order to communicate with a PostgreSQL database backend you need the libpq-dev package.

sudo apt-get install libpq-dev 

then continue the package installation

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