How can I get install the Cool computer language for Ubuntu?
Solution 1:
The installation instructions are on the coursera wiki page (it's very well hidden and took me some time to find).
Note that you must install the files where it tells you to, the paths seem to be hardcoded.
@chaskes's answer doesn't work because it's missing the instructions for where to install the files from the tar, as well as some required packages.
Solution 2:
According to the "longer description" document linked from the Cool Wiki page and the Stanford Compilers course page at Coursera, you won't have any trouble running Cool
on Ubuntu.
A student distribution of the project is available. These distributions include object code for the coolc reference compiler, assignments, and all documentation. (Source: Cool main page)
The student distribution appears to be available only as part of a class or on request, so you can wait until you take the class.
As for installing and running:
Cool is highly portable and easy to install on any Unix machine with standard GNU software tools gmake, bison, and flex....A separate Linux distribution is made available for students to use on their home PCs. (Source: Cool "longer description")
So, again, once you receive the student version you shouldn't have any trouble. You can make sure you have the standard tools installed with:
sudo apt-get install build-essential flex bison
The Stanford course at Coursera says: Students who choose to do the project can implement it in either C++ or Java.
If you choose to use Java, you can install the JDK with:
sudo apt-get install openjdk-7-jdk