Last active
September 16, 2021 03:41
-
-
Save JPEGtheDev/91369e571069f0db38c2 to your computer and use it in GitHub Desktop.
Auto install SDL2 on a CentOS System
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
cd /tmp | |
hg clone https://hg.libsdl.org/SDL SDL; | |
cd SDL; | |
mkdir build; | |
cd build; | |
../configure | |
make; | |
make install; | |
sudo ln -s /usr/local/lib/libSDL2-2.0.so.0 /usr/lib64/libSDL2-2.0.so.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thx