Created
February 25, 2013 22:50
-
-
Save briansorahan/5034064 to your computer and use it in GitHub Desktop.
bash script to install ChucK on ubuntu systems
This file contains hidden or 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 | |
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