compiling SRILM

Andreas Stolcke stolcke at speech.sri.com
Sat Sep 17 11:16:50 PDT 2005


In message <3b97280005091614402c704325 at mail.gmail.com>you wrote:
> I'm not sure if this email should be sent to srilm-user at speech.sri.com
> instead, let me know if you would prefer that.
> 
> I just managed to compile SRILM 1.4.5 after a day of troubleshooting.
> There are a couple of minor points that could be helpful to other
> people. I'm compiling on a pentium running Linux (Debian 1:3.3.4-12).
> 
> They are all edits in common/Makefile.machine.i686. As will become
> clear, compiling C++ isn't my strong point.
> 
> (1) When editing the TCL variables, I didn't initially realize I had
> to prepend -I and -L to the path  (as below).
> 
>    TCL_INCLUDE = -I/usr/include/tcl8.3
>    TCL_LIBRARY = -L/usr/include/tcl8.3  
> 
> If the above is actually correct (well, it compiles) then perhaps a
> note in the documentation file (INSTALL) would help.
> 
> (2) Currently common/Makefile.machine.i686 has
> 
>    GCC_FLAGS = -mtune=pentium3 -Wreturn-type -Wimplicit
> 
>   My gcc (3.3.4) and g++ don't like the "tune" option. They prefer
> what was in the same file in SRILM 1.4.4, so that this makes
> everything compile:
> 
>    GCC_FLAGS = -mcpu=pentium3 -Wreturn-type -Wimplicit
> 
> ...
> 
> Ok, that's it. Thanks very much for writing SRILM - I heard that
> implements Chen-Goodman-modified Kneser-Ney smoothing, which is
> exactly what I was looking for. Now to learn how to use it!
> 
> Dinoj Surendran
> 

Dinoj,

thanks for pointing out these issues.

All the changes you made are as expected.
You are right they could be documented better.

--Andreas




More information about the SRILM-User mailing list