2017-10-20 180 views
0

我需要为Python中的nltk分类例程安装megam。 我接着牛奶魔术从this post指令:
0下载从http://www.umiacs.umd.edu/~hal/megam/index.html
1.用gcc安装了Cygwin megam来源,制作和OCaml的包
2.试图编译megam与时变makefile文件
3 makefile我收到以下内容的错误在Windows上为NLTK安装megam

make
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: command not found
File "fastdot_c.c", line 1:
Error: Error while building custom runtime system make: *** [Makefile:101: megam] Error 2

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

回答

1

由于错误是

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 
+0

谢谢! 我早些时候得出同样的结论,但cygwin安装程序没有显示任何“flexlink”软件包,所以我只是安装了所有“开发”类别中的所有内容,并且工作正常。 –

+0

是的,cygcheck -c显示安装了软件包“flex 2.6.4-1”和“flexdll 0.35-2”。 –