it keeps saying error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
Hmm, make sure that you have SDL2 installed on your system... sudo apt install libsdl2-2.0-0