安装 gems 时捆绑安装挂起

问题描述 投票:0回答:1

我正在尝试在 Ubuntu 22.04 系统上安装 Canvas LMS

我尝试在 Canvas LMS 提供的所需 gem 上运行

bundle install

这是我得到的输出:

Resolving dependencies...
Fetching https://github.com/wrapbook/crystalball.git
Fetching https://github.com/instructure/rspecq.git
Fetching https://github.com/twitter/thrift_client.git
Fetching https://github.com/kreynolds/cassandra-cql.git
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Installing oj 3.16.3 with native extensions
Installing pg_query 5.1.0 with native extensions
Building native extensions. This could take a while...
Killed

它永远卡在 install pg_query 上。我把它放在那里 2 小时,什么也没发生。

奇怪的是,我确实通过手动

gem install pg_query
手动安装了该 gem。它起作用了,我在做时可以看到以下内容
gem info pg_query

*** LOCAL GEMS ***

pg_query (5.1.0)
    Author: Lukas Fittl
    Homepage: https://github.com/pganalyze/pg_query
    License: BSD-3-Clause
    Installed at: /home/ubuntu/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0

    PostgreSQL query parsing and normalization library

我不明白两件事:

  1. 为什么安装pg_query时总是挂起?
  2. 为什么它还要安装 pg_query?已经在那里了。
ruby installation rubygems
1个回答
0
投票

这是一个记忆问题。一旦我按照下面的帖子中的建议创建了交换文件,它就起作用了!

Rails Server 未定义 nil 的方法 `specs`:NilClass

© www.soinside.com 2019 - 2024. All rights reserved.