2017-10-20 185 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」。 –