Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#86 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
node.js, ruby
Ambito
networking

Direzione di ricerca

Inizia con il comando di installazione dell’estensione nativa di websocket-driver 0.7.5 e ispeziona il percorso di gem_make.out indicato nel report, concentrandoti sugli errori di Node.js durante make su WSL2 Ubuntu 20.04. Il lavoro è completato quando viene identificata una causa riproducibile e il problema di installazione per le versioni di Ruby e della piattaforma indicate viene documentato o corretto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Ruby
Stelle
238
Fork
49
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di faye/websocket-driver-ruby

Tutte le issue di faye/websocket-driver-ruby

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.