[Ruby] Install ruby serial port in WSL environment

less than 1 minute read

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

serialport installation sudo gem install serialport

You have successfully installed it.