我正在尝试在 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
我不明白两件事:
这是一个记忆问题。一旦我按照下面的帖子中的建议创建了交换文件,它就起作用了!