Mac Mountain Lion 10.8 下想安装WordNet,shell
make的时候macos
----------------------------------------------------------------------------bash
原来Mountain Lion已经不预装X11,app
简单介绍一下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.spa
所以,须要先安装XQuartz。(66.9MB下载了半个小时,)code
完成后仍然出现一样的错误,此时还须要orm
以后进入下载好的WordNet目录,从新get
./configureio
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 #