Skip to content

Instantly share code, notes, and snippets.

@JPEGtheDev
Last active September 16, 2021 03:41
Show Gist options
  • Save JPEGtheDev/91369e571069f0db38c2 to your computer and use it in GitHub Desktop.
Save JPEGtheDev/91369e571069f0db38c2 to your computer and use it in GitHub Desktop.
Auto install SDL2 on a CentOS System
#!/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
@zhangnew
Copy link

zhangnew commented May 2, 2017

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment