It took me some time to find out how to do so, and here it is. To compile Disksim 3.0 on Ubuntu, you need to install following packages: sudo apt-get install flex-old sudo apt-get install gcc-2.95 then in the source directory, type: make CC=gcc-2.95