Not able to install pg gem on Ubuntu 12.10

给你一囗甜甜゛ 提交于 2019-12-06 10:28:43

Try installing PostgreSQL development headers:

sudo apt-get install libpq-dev

quantum_random

Try - $ sudo apt-get install ruby-dev

sudo gem install pg won't work has that solution and it worked for me.

I had a similar problem on RHEL 6.4, the following worked for me:

gem install /opt/redmine/vendor/cache/pg-0.18.4.gem --local -- --with-pg-dir=/usr/pgsql-9.4/

I setup PostgreSQL from their own repos.

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