configure:错误:***无法找到Tk包含

我正在尝试从SVN安装最新的稳定版GRASS GIS。 在运行configure命令的阶段,我在最后一个阶段得到以下错误。

checking for location of Tcl/Tk includes... /usr/include/tcl8.5 checking for tcl.h... yes checking for tk.h... no configure: error: *** Unable to locate Tk includes. 

我运行配置的命令是 –

 ./configure --with-tcltk-includes=/usr/include/tcl8.5 --with-proj-share=/usr/share/proj 

谁能告诉我我缺少的东西?

它似乎是tk8.5-dev你可以通过sudo apt-get install tk8.5-dev来安装它

要在将来查找丢失的文件,您可以使用apt-file( sudo apt-get install apt-file )。 安装do apt-file update后,您可以搜索丢失的文件。 例如,在这种情况下,我做了apt-file search tk.h ,它提出了tk8.5-dev

另一个巧妙的技巧是如果软件包已经存在于存储库中(它像grass )你可以做sudo apt-get build-dep PACKAGE (在这种情况下是sudo apt-get build-dep grass ),它将安装GRASS的所有依赖项允许您轻松编译它。