Search code examples
tclosx-mountain-lionx11tk-toolkitwordnet

WordNet 3.0 won't install on OS X Mountain Lion (10.8)


When trying to make WordNet 3.0, it exits with error 2. Scrolling up, the following error surfaces:

In file included from tkAppInit.c:16:
/usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directory

How do we install WordNet on OS X 10.8?


Solution

  • The problem is caused by X11 no longer being bundled with OS X from 10.8 (maybe earlier?). The first step is to download and install xQuartz. After this is done, it will have placed X11 headers in:

    /opt/X11/include/X11
    

    But we need them in:

    /usr/include
    

    The easy solution is to just make a symbolic link:

     sudo ln -s /opt/X11/include/X11 /usr/include
    

    (This was taken from an SO post on TCL X11 OS-X)

    Now if you run the make/make install within the WordNet 3.0 distribution, it should install without problems.