Install WordNet in Mountain Lion

来源:互联网 发布:从支付宝解绑淘宝账号 编辑:程序博客网 时间:2024/05/21 14:55

Mac Mountain Lion 10.8 下想安装WordNet,

make的时候

  

----------------------------------------------------------------------------

原来Mountain Lion已经不预装X11,

简单介绍一下X11,X Window System, GUI工具。怎么样查看你的mac是否安装了X11?

The XQuartz project is an open-source effort to develop a version of X11 hat runs on OS X.

因此,需要先安装XQuartz。(66.9MB下载了半个小时,惊恐

完成后仍然出现同样的错误,此时还需要

之后进入下载好的WordNet目录,重新

./configure

make clean

make

sudo make install

安装完成后,还需要将wordnet的bin目录加入环境变量

由于安装位置在./WordNet-3.0/include/wn.h文件中指定,所以在~/.bash_profile文件中加入export PATH=/usr/local/WordNet/bin:$PATH

 30 #define DICTDIR         "/dict" 31 #ifndef DEFAULTPATH         32 #define DEFAULTPATH "/usr/local/WordNet-3.0/dict" 33 #endif

进入shell, 输入wn 或者 wnb

Yans-MacBook-Pro:~ jyfeather88$ wnusage: wn word [-hgla] [-n#] -searchtype [-searchtype...]       wn [-l]-hDisplay help text before search output-gDisplay gloss-lDisplay license and copyright notice-aDisplay lexicographer file information-oDisplay synset offset-sDisplay sense numbers in synsets-n#Search only sense number #

终于搞掂!偷笑


原创粉丝点击