Python 在Windows上安装megam for NLTK

Python 在Windows上安装megam for NLTK,python,makefile,cygwin,nltk,Python,Makefile,Cygwin,Nltk,我需要在Python中安装megam for nltk分类例程。 我遵循Milk Magic的指示: 0从下载的megam源代码 1.使用gcc、make和ocaml软件包安装cygwin 2.更改了生成文件 3.当试图用makefile编译megam时,我收到一个错误,内容如下 制造 ocamldep*.mli*.ml>.depend ocamlc-g-custom-o megam str.cma-cclib-lcamlstr bigarray.cma-cclib-lbigarray unix

我需要在Python中安装megam for nltk分类例程。 我遵循Milk Magic的指示: 0从下载的megam源代码 1.使用gcc、make和ocaml软件包安装cygwin 2.更改了生成文件 3.当试图用makefile编译megam时,我收到一个错误,内容如下

制造 ocamldep*.mli*.ml>.depend ocamlc-g-custom-o megam str.cma-cclib-lcamlstr bigarray.cma-cclib-lbigarray unix.cma-cclib-lunix-I/lib/ocaml/caml fastdot_c.c fastdot.cmo intHashtbl.cmo arry.cmo util.cmo data.cmo bitvec.cmo cg.cmo wsemlm.cmo bfgs.cmo pa.cmo perceptron.cmo radapt.cmo kernelmap.cmo abffs.cmo main.cmo sh:flexlink:未找到命令 文件fastdot_c.c,第1行: 错误:生成自定义运行时系统时出错 make:**[Makefile:101:megam]错误2

你知道可能是什么问题吗? 也许最近有人解决了同样的问题,可以提供帮助。

因为错误是

sh: flexlink: command not found
您需要找到包含它的包

$ cygcheck -p flexlink
Found 5 matches for flexlink
flexdll-0.34-1 - flexdll: Creates DLLs with runtime symbol resolution (installed binaries and support files)
flexdll-0.35-1 - flexdll: Creates DLLs with runtime symbol resolution (installed binaries and support files)
flexdll-0.35-2 - flexdll: Creates DLLs with runtime symbol resolution
...
因此,您需要安装flexdll包

$ cygcheck -l flexdll |grep bin
/usr/bin/flexlink

谢谢我之前也得出了同样的结论,但cygwin安装程序没有向我展示任何flexlink软件包,所以我只安装了develop category中的所有软件包,并且它工作正常。是的,cygcheck-c显示安装了flex 2.6.4-1和flexdll 0.35-2软件包。