1

I have been trying to install the gem Ruby2D (https://www.ruby2d.com/learn/get-started )on my WSL Ubuntu. But I'm getting the following error after I run gem install ruby2d:

== Ruby 2D Installation Errors =======================================

Couldn't find packages needed by Ruby 2D. Install the following packages using apt and try again:

libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev

screenshot of error .

I tried using apt-get libsdl2-dev, as suggested above but I received the error- Invalid operation.

I also tried installing the gem again after using the command apt-get install ruby-dev, but it didn't work.

It would be great if someone had any suggestions :)

prnvsan
  • 11
  • 1

1 Answers1

0

Try this:

sudo apt-get update

sudo apt-get install libsdl2-dev
Nifriz
  • 1,033
  • 1
  • 10
  • 21