加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Postgres – “pg”gem的最后一个版本0.14.0给

发布时间:2020-12-16 20:49:29 所属栏目:百科 来源:网络整理
导读:我已经更新了我的包含pg gem的bundler,我收到了错误 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. 我在rubygems.org上检查了这个gem,今天(6月23日)
我已经更新了我的包含pg gem的bundler,我收到了错误
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.

我在rubygems.org上检查了这个gem,今天(6月23日)发布了这个版本.我不知道为什么,但版本不能正常工作并返回上面的错误.

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

宝石“pg”,“?> 0.13.2”

谁有同样的问题?

解决方法

您需要安装postgresql-server-dev-X.Y来构建服务器端扩展,或者安装libpq-dev来构建客户端应用程序.

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

所以:

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读