在ubuntu上安装Wordnet-3.0时出错:找不到Tcl配置定义

vid*_*aha 2 install tk-toolkit tcl wordnet ubuntu-14.04

我下载了Wordnet-3.0,因为它说必须已经安装了tcl和tk.所以我用以下方法检查了这个:

vidyasagar@vidyasagar-ThinkPad-Edge-E431:~/Documents/NLP/WordNet-3.0$ dpkg -s tcl
Package: tcl
Status: install ok installed
Priority: optional
Section: interpreters
Installed-Size: 51
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Source: tcltk-defaults
Version: 8.6.0+6ubuntu3
Provides: tclsh
Depends: tcl8.6 (>= 8.6.0-2)
Breaks: tcl8.3 (<< 8.3.5-15), tcl8.4 (<< 8.4.20-2), tcl8.5 (<< 8.5.14-3), tcl8.6 8.6.0-2)
Conflicts: tcl-lib, tcl8.5-lib
Description: Tool Command Language (default version) - shell
 Tcl is a powerful, easy to use, embeddable, cross-platform interpreted
scripting language.
This package is a dependency package, which depends on Debian's default
 Tcl version (currently 8.6).
Original-Maintainer: Debian Tcl/Tk Packagers <pkg-tcltk-devel@lists.alioth.debian.org>
vidyasagar@vidyasagar-ThinkPad-Edge-E431:~/Documents/NLP/WordNet-3.0$ 
Run Code Online (Sandbox Code Playgroud)

所以它似乎已经安装好了.现在我检查了tk.

vidyasagar@vidyasagar-ThinkPad-Edge-E431:~/Documents/NLP/WordNet-3.0$ dpkg -s tk
Package: tk
Status: install ok installed
Priority: optional
Section: interpreters
Installed-Size: 51
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Source: tcltk-defaults
Version: 8.6.0+6ubuntu3
Provides: wish
Depends: tk8.6 (>= 8.6.0-2), tcl
Breaks: tk8.3 (<< 8.3.5-16), tk8.4 (<< 8.4.20-2), tk8.5 (<< 8.5.14-3), tk8.6 (<< 8.6.0-2)
Conflicts: tk-lib, tk8.5-lib
Description: Toolkit for Tcl and X11 (default version) - windowing shell
 Tk is a cross-platform graphical toolkit which provides the Motif
look-and-feel and is implemented using the Tcl scripting language.
This package is a dependency package, which depends on Debian's default
 Tk version (currently 8.6).
Original-Maintainer: Debian Tcl/Tk Packagers <pkg-tcltk-devel@lists.alioth.debian.org>
vidyasagar@vidyasagar-ThinkPad-Edge-E431:~/Documents/NLP/WordNet-3.0$ 
Run Code Online (Sandbox Code Playgroud)

现在我在WordNet-3.0文件夹中运行./configure
我收到如下错误:

checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions
Run Code Online (Sandbox Code Playgroud)

问题是什么...?

Don*_*ows 5

它找不到一个文件(称为tclConfig.sh),它准确描述如何设置编译器,以便能够访问其安装位置中的Tcl头文件和库文件; 找到它的地方是通过--with-tclWordNet configure脚本的选项给出的.对于Tk(tkConfig.sh)也有一个等价的.

我想你需要tcl-devtk-dev包,因为你不只是想使用Tcl和Tk,而是针对库编写代码.(因为这就是Debian派生的发行版喜欢打包的东西.)