Did you build SDL2 yourself or install from the package manager? Self-built versions will sometimes do this if you fail to install the required dependencies before building them (the list of packages is in
docs/README-linux
).