Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 22.04 - gem install websocket-driver "make failedNo such file or directory" #89

Open
Freecat7 opened this issue Dec 7, 2022 · 1 comment

Comments

@Freecat7
Copy link

Freecat7 commented Dec 7, 2022

Wanted to install Ruby on Rails normally, installation failed on websocket-driver.

  1. sudo apt-get install ruby-full
  2. sudo apt-get installl rails(failed)
  3. sudo gem install --verbose websocket-driver(failed)

Output:

Building native extensions. This could take a while..
current` directory: /var/lib/gems/3.0.0/gems/websocket-driver-0.7.5/ext/websocket-driver
["/usr/bin/ruby3.0", "-I", "/usr/lib/ruby/vendor_ruby", "-r", "./siteconf20221207-1980-sxqm8n.rb", "extconf.rb"]
creating Makefile
current directory: /var/lib/gems/3.0.0/gems/websocket-driver-0.7.5/ext/websocket-driver
["make", "DESTDIR=", "clean"]
current directory: /var/lib/gems/3.0.0/gems/websocket-driver-0.7.5/ext/websocket-driver
["make", "DESTDIR="]
ERROR: Error installing websocket-driver:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/3.0.0/gems/websocket-driver-0.7.5/ext/websocket-driver
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20221207-1980-sxqm8n.rb extconf.rb
current directory: /var/lib/gems/3.0.0/gems/websocket-driver-0.7.5/ext/websocket-driver
make DESTDIR= clean
current directory: /var/lib/gems/3.0.0/gems/websocket-driver-0.7.5/ext/websocket-driver
make DESTDIR=
make failedNo such file or directory - make
Gem files will remain installed in /var/lib/gems/3.0.0/gems/websocket-driver-0.7.5 for inspection.
Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/websocket-driver-0.7.5/gem_make.out

Other versions I have also tried all lead to the same error

@jcoglan
Copy link
Collaborator

jcoglan commented Dec 16, 2022

This looks as though you don't have make installed, which is required for building native extensions. The best way to get the C build toolchain installed on Ubuntu is to install the build-essential package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants