CS164 Projects at Home

Since many students want to work at home, we are making an effort to provide the necessary files and binaries. Currently, we have distributions for Linux/x86 and Cygwin/Windows/x86. However, please keep two things in mind if you decide to use them:

Required Software

For C++ projects, you will need gcc, flex (for PA2), and bison (for PA3). If you intend to do the projects in Java, you need JDK 1.2.2 or later, but JLex and CUP are included with the Cool distribution. See also the Software page.

Linux

To run Coolaid, you will need Tcl/Tk version ≥ 8.3 and glibc ≥ 2.3.2.

Windows

For Windows, you need to install Cygwin. Cygwin is a Linux-like environment for Windows, which can be obtained from http://www.cygwin.com. To run Coolaid, you need at least the following additional Cygwin packages:

CS164 Distribution

Download

Installation

First, create a directory that will be the root of the CS164 distribution. This directory will serve the same purpose as ~cs164 on the instructional machines. Then, make sure that the environment variable MASTERDIR is set to this directory. For example, include

where /home/user/cs164 is the directory you have crated to be root of the CS164 distribution.

Download the CS164 packages to your root for the CS164 distribution. To unpack the linux distribution, type:
  % cd $MASTERDIR
  % tar xvzf cs164-linux.tar.gz
Similarly, unpack any project distributions from your root for the CS164 distribution. Finally, add ${MASTERDIR}/bin to your path.

To work on the projects, follow the handout instructions substituting your root for ~cs164 where appropriate.

To use Coolaid, you need to make sure your environment variable TCL_LIBRARY is set to where the init.tcl file is located. For example, include

where /usr/share/tcl8.3 is where the init.tcl file is located.