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$ wn
usage: wn word [-hgla] [-n#] -searchtype [-searchtype...]
wn [-l]
-h Display help text before search output
-g Display gloss
-l Display license and copyright notice
-a Display lexicographer file information
-o Display synset offset
-s Display sense numbers in synsets
-n# Search only sense number #
终于搞掂!