使用 cygwin 安装 SRILM 并出现 "iconv.h: No such file or directory # include_next <iconv.h>" 错误

installing SRILM using cygwin and get "iconv.h: No such file or directory # include_next <iconv.h>" error

我正在尝试在 this tutorial 的帮助下使用 Cygwin 安装 SRILM,但出现此错误:

make[2]: Leaving directory '/srilm/zlib/src'
make[1]: Leaving directory '/srilm'
make release-libraries
make[1]: Entering directory '/srilm'
for subdir in misc dstruct lm flm lattice utils zlib; do \
        (cd $subdir/src; make SRILM=/srilm MACHINE_TYPE=cygwin64 OPTION= MAKE_PIC= release-libraries) || exit 1; \
done
make[2]: Entering directory '/srilm/misc/src'
g++ -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES    -I. -I../../include   -c -g -O2 -o ../obj/cygwin64/File.o File.cc
In file included from File.cc:25:0:
srilm_iconv.h:15:25: fatal error: iconv.h: No such file or directory
 # include_next <iconv.h>
                         ^
compilation terminated.
/srilm/common/Makefile.common.targets:93: recipe for target '../obj/cygwin64/File.o' failed
make[2]: *** [../obj/cygwin64/File.o] Error 1
make[2]: Leaving directory '/srilm/misc/src'
Makefile:109: recipe for target 'release-libraries' failed
make[1]: *** [release-libraries] Error 1
make[1]: Leaving directory '/srilm'
Makefile:57: recipe for target 'World' failed
make: *** [World] Error 2

我在重新安装 cygwin 的过程中多次检查了 iconv 包。

知道可能出了什么问题吗?

P.S。我正在使用 Windows 8.1,srilm-1.7.1

将以下几行添加到“c:\cygwin\home\yourname.bashrc”文件中:

export SRILM=/srilm
export MACHINE_TYPE=cygwin
export PATH=$PATH:$pwd:$SRILM/bin/cygwin
export MANPATH=$MANPATH:$SRILM/man

一切都很好。