在Mac 10.9.2上安装WordNet [英] installing WordNet on Mac 10.9.2

查看:54
本文介绍了在Mac 10.9.2上安装WordNet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac(OS 10.9.2)上安装WordNet.我尝试了以下

I'm trying to install WordNet on Mac (OS 10.9.2). I have tried the following

  1. ./configure
  2. 制作

但是在 make 期间,我遇到了一些错误.然后,我已经安装了XQuartz-2.7.5.在 make 期间仍然出现了一些错误.接下来,我已经安装了Xcode,但是仍然不能解决问题.这个问题建议安装Tcl/TK,我尝试过,但是在 make

But during make I got some errors. Then I have installed XQuartz-2.7.5. Still I got some error during make. Next, I have installed Xcode but still this dose not fix the problem. This question suggest to install Tcl/TK, which I tried but still I got the following error during make

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in doc
Making all in html
make[3]: Nothing to be done for `all'.
Making all in man
make[3]: Nothing to be done for `all'.
Making all in pdf
make[3]: Nothing to be done for `all'.
Making all in ps
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in dict
make[2]: Nothing to be done for `all'.
Making all in include
Making all in tk
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in lib
Making all in wnres
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
if /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -I/usr/X11/include -I/usr/local/include -I.. -I../include -I/usr/local/include -I/usr/X11/include -I/usr/local/include    -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -fpermissive -MT wishwn-stubs.o -MD -MP -MF ".deps/wishwn-stubs.Tpo" -c -o wishwn-stubs.o `test -f 'stubs.c' || echo './'`stubs.c; \
then mv -f ".deps/wishwn-stubs.Tpo" ".deps/wishwn-stubs.Po"; else rm -f ".deps/wishwn-stubs.Tpo"; exit 1; fi
clang: warning: -lX11: 'linker' input unused
clang: warning: argument unused during compilation: '-L/usr/X11R6/lib'
stubs.c:43:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = 
      ~~~~~~    ^
stubs.c:55:14: error: no member named 'result' in 'struct Tcl_Interp'
   interp -> result = bitfieldstr;
   ~~~~~~    ^
stubs.c:72:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: bit bitnum";
      ~~~~~~    ^
stubs.c:78:14: error: no member named 'result' in 'struct Tcl_Interp'
   interp -> result = bitfieldstr;
   ~~~~~~    ^
stubs.c:92:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = 
      ~~~~~~    ^
stubs.c:105:14: error: no member named 'result' in 'struct Tcl_Interp'
   interp -> result = resultbuf;
   ~~~~~~    ^
stubs.c:117:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: glosses [1 | 0]";
      ~~~~~~    ^
stubs.c:132:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: fileinfo [1 | 0]";
      ~~~~~~    ^
stubs.c:147:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: byteoffset [1 | 0]";
      ~~~~~~    ^
stubs.c:162:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: senseflag [1 | 0]";
      ~~~~~~    ^
stubs.c:178:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: contextualhelp partofspeechnum searchtypenum";
      ~~~~~~    ^
stubs.c:183:14: error: no member named 'result' in 'struct Tcl_Interp'
   interp -> result = helptext[pos][searchtype];
   ~~~~~~    ^
stubs.c:193:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: reopendb";
      ~~~~~~    ^
stubs.c:207:17: error: no member named 'result' in 'struct Tcl_Interp'
      interp -> result = "usage: abortsearch";
      ~~~~~~    ^
14 errors generated.
make[2]: *** [wishwn-stubs.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

请告诉我如何解决此问题.如果Tcl/TK有问题,能否请您解释安装它的正确方法.谢谢

Please advice me how to solve this problem. If the problem with Tcl/TK, could you please explain the right way to install it. Thanks

推荐答案

直接访问 interp->结果!哦,这是 非常如今不推荐使用的.

Direct access to interp->result! Oh, that's very deprecated nowadays.

您最好的选择是使用Tcl 8.5或8.4构建(不建议使用这种编码模式),但是您可以通过将 -DUSE_INTERP_RESULT 标志传递给编译器.如果您这样做,您会获得警告,但这比硬错误要好,是吗?

Your best bet is to build with Tcl 8.5 or 8.4 (where it's just NOT RECOMMENDED to use such coding patterns), but you can make things work in 8.6 by passing the -DUSE_INTERP_RESULT flag to the compiler. You will get warnings if you do this, but that's better than hard errors, yes?

每个地方都应该改为使用 Tcl_SetResult ,即来自:

Each of those places really ought to be changed to use Tcl_SetResult, i.e. from:

interp->result = "usage: glosses [1 | 0]";

Tcl_SetResult(interp, "usage: glosses [1 | 0]", TCL_DYNAMIC);

(好的,在这种情况下, TCL_DYNAMIC 可以是 TCL_STATIC ,但我们也可以进行防御性编码;开销实际上是零.)

(OK, the TCL_DYNAMIC could be TCL_STATIC in this case, but we might as well code defensively; the overhead is effectively zero.)

请注意,Tcl已支持 Tcl_SetResult API数十年.更改使用它不会阻止代码使用旧版本进行构建.

Note that the Tcl_SetResult API has been supported in Tcl for decades. Changing to use it will not prevent code from building with older versions.

这篇关于在Mac 10.9.2上安装WordNet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆