Hi All,<div><br></div><div>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 '<u>csh</u>' and '<u>tcsh</u>'. I am working with <u>Joshua decoder</u>.</div>
<div><br></div><div>After downloading and unzipping <u>srilm.tgz</u>, I tried <u>make</u> command and got the following:</div><div><div>make: /sbin/machine-type: Command not found</div><div>mkdir include lib bin</div><div>
mkdir: cannot create directory `include': File exists</div><div>mkdir: cannot create directory `lib': File exists</div><div>mkdir: cannot create directory `bin': File exists</div><div>make: [dirs] Error 1 (ignored)</div>
<div>make init</div><div>make[1]: /sbin/machine-type: Command not found</div><div>make[1]: Entering directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm'</div><div>make[1]: Entering directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm'</div>
<div>for subdir in misc dstruct lm flm lattice utils; do \</div><div><span class="Apple-tab-span" style="white-space:pre">          </span>(cd $subdir/src; make SRILM= MACHINE_TYPE= OPTION= MAKE_PIC= init) || exit 1; \</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>done</div><div>make[2]: Entering directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm/misc/src'</div><div>Makefile:24: /common/Makefile.common.variables: No such file or directory</div>
<div>Makefile:139: /common/Makefile.common.targets: No such file or directory</div><div>make[2]: *** No rule to make target `/common/Makefile.common.targets'.  Stop.</div><div>make[2]: Leaving directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm/misc/src'</div>
<div>make[1]: *** [init] Error 1</div><div>make[1]: Leaving directory `/cygdrive/f/CL/Drei/Project/Joshua/srilm'</div><div>make: *** [World] Error 2</div></div><div><br></div><div><br></div><div>After I changed <u>Makefile</u> in the top level, specifically <u>PACKAGE_DIR = F:/CL/Drei/Project/Joshua/srilm</u>, where the directory is the one <u>srilm.tgz</u> unzipped into. When I try make command, what I get is the following:</div>
<div><br></div><div>Makefile:100: *** target pattern contains no `%'.  Stop.</div><div><br></div><div>I know there is some problem with line 100 in the <u>Makefile</u> file, which is:</div><div><br></div><div><div>package:<span class="Apple-tab-span" style="white-space:pre"> </span>$(PACKAGE_DIR)/EXCLUDE</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>$(TAR) cvzXf $(PACKAGE_DIR)/EXCLUDE $(PACKAGE_DIR)/srilm-$(RELEASE).tar.gz .</div></div><div><br></div><div>Where should I add `%'? Or there are other problem in this? Please help.</div>
<div><br></div><div>Thanks.</div><div>Xichuan</div>