我需要在Python中为nltk分类例程安装megam。
我遵循了来自this post的Milk Magic的指示:
0.从http://www.umiacs.umd.edu/~hal/megam/index.html下载的megam源
1.安装了带gcc,make和ocaml包的cygwin
2.更改了makefile
3.当尝试使用makefile编译megam时,我收到带有以下内容的错误
使
ocamldep * .mli * .ml> 。依靠 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
你知道问题可能是什么吗? 也许有人最近解决了同样的问题并且可以提供帮助。
答案 0 :(得分: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