While the chuck
package for Ubuntu has been published in 2020 for Ubuntu 20.04, it's a re-publish of version 1.2.0.8. ChucK has since made it to version 1.4.0.1
. If you would like to use newer features like Unit Analyzers (UAnae), Dynamic Arrays, Chugins, and much more, you'll have to upgrade. I have in the past packaged ChucK into a debian package - but this time I've decided to build it from source. Here's how I did it:
1) Download ChucK.
You can get ChucK from the official website, which contains a snapshot of the code at the latest version, or from the repository on GitHub, where you'll get the very freshest patches.
2) Install the assorted dependencies
ChucK depends on some packages in Ubuntu. Here are the ones I had to install:
make
gcc
g++
bison
flex
libasound2-dev
libsndfile1-dev
3) In the src
directory of the downloaded package, run some commands
To compile and build ChucK, you can run
make linux-pulse
pulse
is a linux audio system that is available in Ubuntu 20.04. You could alternatively choose to use the jack
or alsa
audio drivers. I ran into an issue where ChucK wouldn't build with those drivers though, so I'd recommend sticking with pulse
.
4) Run sudo make install
This'll copy the chuck
binary you just built into your systemwide binaries directory.
Now you have access to the chuck
tool on your command line!