Postgres-“ pg”的最新版本0.14.0宝石给出错误 [英] Postgres - the last version 0.14.0 of the "pg" gem gives error

查看:74
本文介绍了Postgres-“ pg”的最新版本0.14.0宝石给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了包含 pg gem的捆绑软件,但出现错误

I have updated my bundler which contains pg gem and I got the error

An error occured while installing pg (0.14.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.14.0'` succeeds before bundling.

我已经在 ruby​​gems.org 和今天(6月23日)上检查了该宝石)已发布此版本。我不知道为什么,但是该版本无法正常工作,并返回上面的错误。

I have checked this gem on rubygems.org and today (June 23) was released this version. I don't know why, but the version doesn't works me correctly and return the error above.

解决方案设置了特定版本-在这种情况下

The solution is set up the specific version - in this case

宝石 pg,〜> 0.13.2

推荐答案

您需要安装postgresql-server-dev-XY来构建服务器端扩展或libpq-

You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.

您不需要在Gemfile中指定特定版本的PG

所以:

sudo apt install ruby-dev libpq-dev build-essential

这篇关于Postgres-“ pg”的最新版本0.14.0宝石给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆