[SRILM User List] Problem on Installing SRILM

Andreas Stolcke stolcke at icsi.berkeley.edu
Tue Nov 1 14:27:37 PDT 2011


You didn't set the SRILM variable correctly.
Either edit the top-level Makefile or invoke make with 

	make SRILM=/absolute/path/to/srilm  World 

Do not change PACKAGE_DIR, change the SRILM variable instead.
Do not use DOS-style path names (F:\...).  Use cygwin paths, like /home/username/srilm.

Andreas 

In message <CAGpUkWYER3wYV_uydEP=NaQ8Zfpg-Q1Ua5yzHHQ-ZLHg2z+o6g at mail.gmail.com>you wrote:
> 
> Hi All,
> 
> I have been trying to install SRILM but confronted with one problem, which
> googling does not help. Some infos about the platform: Win7, 32bit, Cygwin
> including '*csh*' and '*tcsh*'. I am working with *Joshua decoder*.
> 
> After downloading and unzipping *srilm.tgz*, I tried *make* command and got
> the following:
> make: /sbin/machine-type: Command not found
> mkdir include lib bin
> mkdir: cannot create directory `include': File exists
> mkdir: cannot create directory `lib': File exists
> mkdir: cannot create directory `bin': File exists
> make: [dirs] Error 1 (ignored)
> make init
> make[1]: /sbin/machine-type: Command not found
> make[1]: Entering directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm'
> make[1]: Entering directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm'
> for subdir in misc dstruct lm flm lattice utils; do \
> (cd $subdir/src; make SRILM= MACHINE_TYPE= OPTION= MAKE_PIC= init) || exit
> 1; \
> done
> make[2]: Entering directory
> `/cygdrive/f/CL/Drei/Project/Joshua/srilm/misc/src'
> Makefile:24: /common/Makefile.common.variables: No such file or directory
> Makefile:139: /common/Makefile.common.targets: No such file or directory
> make[2]: *** No rule to make target `/common/Makefile.common.targets'.
>  Stop.
> make[2]: Leaving directory
> `/cygdrive/f/CL/Drei/Project/Joshua/srilm/misc/src'
> make[1]: *** [init] Error 1
> make[1]: Leaving directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm'
> make: *** [World] Error 2
> 
> 
> After I changed *Makefile* in the top level, specifically *PACKAGE_DIR =
> F:/CL/Drei/Project/Joshua/srilm*, where the directory is the one
> *srilm.tgz*unzipped into. When I try make command, what I get is the
> following:
> 
> Makefile:100: *** target pattern contains no `%'.  Stop.
> 


More information about the SRILM-User mailing list