Skip to content

Instantly share code, notes, and snippets.

@zhangnew
Forked from JPEGtheDev/SDLInstall.sh
Created May 2, 2017 07:45
Show Gist options
  • Save zhangnew/0723e0099184431dca922153b91f0f63 to your computer and use it in GitHub Desktop.
Save zhangnew/0723e0099184431dca922153b91f0f63 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment