I had this problem today, and SDL2 did not work for me.
If you need SDL1 you can install it with:
sudo apt install libsdl1.2-dev
Tetsted on xubuntu 24.04.1