WSL on Windows I tried to use the serial port gem, but I was so addicted to it that it was a reminder.
Unable to compile when trying to install the serialport gem.
environment Windows 10 WSL Ubuntu 20.04 LTS
Update for the time being
sudo apt update
ruby-dev and build-essential seem to be needed for serialport build
sudo apt install -y ruby ruby-dev build-essential
sudo gem install serialport
You have successfully installed it.