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

Unable to install websocket-driver 0.7.5 on Amazon EC2 linux

Aperta
#84 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
rails, ruby

Direzione di ricerca

Inizia riproducendo gem install websocket-driver -v '0.7.5' su Amazon Linux 2 e ispeziona l’estensione nativa in ext/websocket-driver, insieme al file gem_make.out segnalato. Confronta l’ambiente di build e l’errore con la versione 0.7.4; il lavoro è completato quando viene identificato se il progetto necessita di una modifica di compatibilità o se l’errore di installazione è dovuto all’ambiente.

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

Descrizione

I just ran bundle update for my project and all went well and am able to run my Rails 5.2.x app on my OSX dev machine. When I try to run bundle install however on my linux server it fails to install the 0.7.5 gem.

I was able to lock it to version 0.7.4 in my Gemfile for now.

My OS info:

-bash-4.2$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

Bundler output:

Fetching gem metadata from https://rubygems.org/.......
Using rake 13.0.3
Using concurrent-ruby 1.1.9
Using i18n 1.8.10
Using minitest 5.14.4
Using thread_safe 0.3.6
Using tzinfo 1.2.9
Using activesupport 5.2.6
Using builder 3.2.4
Using erubi 1.10.0
Using mini_portile2 2.5.3
Using racc 1.5.2
Using nokogiri 1.11.7 (x86_64-linux)
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.10.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.6
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 5.2.6
Using nio4r 2.5.7
Using websocket-extensions 0.1.5
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: /my/app/ruby/2.6.0/gems/websocket-driver-0.7.5/ext/websocket-driver
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20210615-16710-125xzhr.rb extconf.rb
creating Makefile

current directory: /my/app/ruby/2.6.0/gems/websocket-driver-0.7.5/ext/websocket-driver
make "DESTDIR=" clean
rm -f 
rm -f websocket_mask.so  *.o  *.bak mkmf.log .*.time

current directory: /my/app/ruby/2.6.0/gems/websocket-driver-0.7.5/ext/websocket-driver
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.   -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches  -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -mtune=generic -fPIC -m64 -o websocket_mask.o -c websocket_mask.c
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
make: *** [websocket_mask.o] Error 1

make failed, exit code 2

Gem files will remain installed in /my/app/ruby/2.6.0/gems/websocket-driver-0.7.5 for inspection.
Results logged to /my/app/ruby/2.6.0/extensions/x86_64-linux/2.6.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' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  contact_us was resolved to 1.2.0, 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

Gemfile.lock (just displaying the pertinent bits):

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (5.2.6)
      actionpack (= 5.2.6)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)

      ...

   websocket-driver (0.7.4)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)

    ..

RUBY VERSION
   ruby 2.6.3p62

BUNDLED WITH
   2.1.4.
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.