Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Install gem on WSL2 (Ubuntu 20.04) fails with error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

未关闭
#86 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
node.js, ruby
领域
networking

调研方向

从 websocket-driver 0.7.5 的原生扩展安装命令开始,检查报告中显示的 gem_make.out 路径,重点关注在 WSL2 Ubuntu 20.04 上执行 make 期间出现的 Node.js 错误。完成的标准是确定一个可复现的原因,并记录或修正针对所述 Ruby 和平台版本的安装失败问题。

由索引模型根据 Issue 内容生成。

描述

I installed gems to project and it failed with message:

Fetching websocket-driver 0.7.5
Installing websocket-driver 0.7.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/home/brobobro/.rvm/gems/ruby-2.7.2/gems/websocket-driver-0.7.5/ext/websocket-driver
/home/brobobro/.rvm/rubies/ruby-2.7.2/bin/ruby -I
/home/brobobro/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0 -r ./siteconf20210929-2314-1hf0sbp.rb
extconf.rb
creating Makefile

current directory:
/home/brobobro/.rvm/gems/ruby-2.7.2/gems/websocket-driver-0.7.5/ext/websocket-driver
make "DESTDIR=" clean
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function
without a catch block, or by rejecting a promise which was not handled with .catch(). The promise
rejected with the reason "undefined".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

current directory:
/home/brobobro/.rvm/gems/ruby-2.7.2/gems/websocket-driver-0.7.5/ext/websocket-driver
make "DESTDIR="
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function
without a catch block, or by rejecting a promise which was not handled with .catch(). The promise
rejected with the reason "undefined".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

make failed, exit code 1

Gem files will remain installed in /home/brobobro/.rvm/gems/ruby-2.7.2/gems/websocket-driver-0.7.5
for inspection.
Results logged to
/home/brobobro/.rvm/gems/ruby-2.7.2/extensions/x86_64-linux/2.7.0/websocket-driver-0.7.5/gem_make.out

An error occurred while installing websocket-driver (0.7.5), and Bundler cannot continue.
Make sure that `gem install websocket-driver -v '0.7.5'` succeeds before bundling.

In Gemfile:
  grape_on_rails_routes was resolved to 0.3.2, which depends on
    rails was resolved to 5.2.6, which depends on
      actioncable was resolved to 5.2.6, which depends on
        websocket-driver

Windows 11
WSL2
Ubuntu 20.04

gcc and build essentioals installed

主要语言
Ruby
星标
238
派生
49
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

faye/websocket-driver-ruby 的其他 Issue

查看 faye/websocket-driver-ruby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。