Unable to compile when trying to install 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.