Skip to content

Instantly share code, notes, and snippets.

@tjdett
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjdett/a0724837e5757a5f36c9 to your computer and use it in GitHub Desktop.
Save tjdett/a0724837e5757a5f36c9 to your computer and use it in GitHub Desktop.
Install script for GDIS on DIT4C
#!/bin/sh
fsudo yum install -y gtk2-devel mesa-libGLU-devel expect
# Install gtkglext from unofficial RPMs
fsudo yum localinstall -y \
http://www.melvilletheatre.com/articles/el7/gtkglext-libs-1.2.0-21.el7.centos.x86_64.rpm \
http://www.melvilletheatre.com/articles/el7/gtkglext-devel-1.2.0-21.el7.centos.x86_64.rpm
curl -L https://github.com/arohl/gdis/archive/master.tar.gz | tar xzv -C /tmp
cd /tmp/gdis-master
LDFLAGS="$LDFLAGS -lm" PKG_CONFIG_PATH=/usr/local/lib/pkgconfig expect <<SCRIPT
spawn ./install
set timeout 3600
expect "Choice: "
send -- "1\r"
expect "Enter Install location"
send -- "/usr/local/bin\r"
expect eof
SCRIPT
cd -
rm -r /tmp/gdis-master
chmod +x /usr/local/bin/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment