Closed soapergem closed 2 months ago
I'm not able to reproduce this problem using the same versions of Ubuntu and gcc. You might have more success asking the ruby mailing list if you're having trouble compiling native extensions. This library's extconf.rb doesn't do anything fancy, it makes very basic use of the Ruby mkmf
library.
Thanks for responding. I sent a message to the ruby-talk mailing list but have yet to hear back. But in the meantime I found a working solution. I did a lot of Googling and eventually came across this StackOverflow post (which has nothing to do with Ruby), but I tried out the recommended fix which seemed to work in my scenario as well. BasicallyI had to run these three commands:
sudo apt-get install clang
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
I'm not sure why that was necessary, but I'm posting it here in case anybody else runs into a similar issue down the line.
I am trying to run
gem install websocket-driver
on my Ubuntu 22.04 machine. This is a legit Ubuntu machine and not Windows/WSL. However I immediately get the following errors:If I run
gcc --version
it reports that I have version 11.4.0 installed. I also have the build-essential package already installed, too. Any advice?