小编Gro*_*ian的帖子

为什么捆绑会忽略“gem 'pg'”?

正在工作

不知道发生了什么。在 linux 机器上构建 gemfile.lock 并将其移动。有丢失的东西,运行捆绑安装,工作。


Bundle 忽略了我在 Gemfile 中包含的“pg”gem。通过安装 pggem install pg工作正常,当我使用gem list --local.

宝石档案:

source 'http://rubygems.org'

gem 'rails' 
gem 'pg'
Run Code Online (Sandbox Code Playgroud)

bundle install (无页):

Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.7.2)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.2)
Using tilt (1.3.7)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.23)
Using polyglot (0.3.3) …
Run Code Online (Sandbox Code Playgroud)

ruby gem ruby-on-rails bundler pg

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

bundler ×1

gem ×1

pg ×1

ruby ×1

ruby-on-rails ×1