Skip to content

Instantly share code, notes, and snippets.

@briansorahan
Created February 25, 2013 22:50
Show Gist options
  • Save briansorahan/5034064 to your computer and use it in GitHub Desktop.
Save briansorahan/5034064 to your computer and use it in GitHub Desktop.
bash script to install ChucK on ubuntu systems
#!/bin/bash
main() {
# exit if not root
if [ $(id -u) -ne 0 ]; then
echo "This installer must be run as root."
exit 4
fi
# install deps
apt-get install g++ bison flex libasound2-dev libjack-jackd2-dev
# install chuck
local chuck_version="1.3.1.3"
local chuck_url="http://chuck.cs.princeton.edu/release/files/"
local chuck_dir="chuck-${chuck_version}"
local chuck_tarball="${chuck_dir}.tgz"
wget ${chuck_url}/${chuck_tarball}
tar xzf $chuck_tarball
cd ${chuck_dir}/src
make linux-jack
make install
}
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment