EDIT: This is my original post, but the comments have newer and better instructions.
I always encounter problems when compiling SRILM on Ubuntu. Assuming the basic SRILM dependencies are installed on your system (see the Prerequisites), this works for SRILM 1.5.11 on Ubuntu 9.04 (Jaunty) and 10.04 (Lucid):
- Install tcsh if not already installed
- Install all the TCL developer libraries: tcl8.4-dev, tcl-dev, tcl-lib, tclx8.4, tclx8.4-dev. This step may not be necessary, let me know what works for you.
- Uncomment the “
SRILM =
” line in the top level Makefile and replace the existing path with the absolute path of the SRILM top-level directory on your system (where the Makefile resides) - Start the tcsh shell
- Type “
make NO_TCL=X MACHINE_TYPE=i686-gcc4 World > & make.log.txt
” to begin the build and capture stderr and stdout in a file - If you can run “
./bin/i686-gcc4/ngram-count -help
“, the build was probably a success
Please add simplifications to this recipe or extensions to other versions of Ubuntu in the comments.