首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >编译cgnstools中的"tcl.h:没有这样的文件或目录错误“

编译cgnstools中的"tcl.h:没有这样的文件或目录错误“
EN

Ask Ubuntu用户
提问于 2019-04-16 11:19:07
回答 1查看 2.3K关注 0票数 0

我安装了CGNS源代码(从github下载)以将其实现到CFL3D中。我使用了命令(./配置、make、make )。我已经安装了tk-dev和tcl-dev包,之前的错误是"tk.h:没有这样的文件或目录“,在cgnstools目录中的"make.defs”文件中指定路径(/usr/include/tk/tk.h)之后,这个错误将被解析,但现在编译器没有找到tcl.h文件。请建议一下。

代码语言:javascript
复制
----- cgnsview -----
make[1]: Entering directory '/home/magan/CGNS-3.4.0/src/cgnstools/cgnsview'
gcc -g -O2  -I/home/magan/CGNS-3.4.0/src /usr/include/tk/tk.h -c cgiowish.c
/usr/include/tk/tk.h:19:10: fatal error: tcl.h: No such file or directory
 #include <tcl.h>
          ^~~~~~~
compilation terminated.
cgiowish.c:15:10: fatal error: tk.h: No such file or directory
 #include "tk.h"
          ^~~~~~
compilation terminated.
Makefile.unix:115: recipe for target 'cgiowish.o' failed
make[1]: *** [cgiowish.o] Error 1
make[1]: Leaving directory '/home/magan/CGNS-3.4.0/src/cgnstools/cgnsview'
Makefile:57: recipe for target 'prog-cgnsview' failed
make: *** [prog-cgnsview] Error 2
EN

回答 1

Ask Ubuntu用户

发布于 2019-04-16 11:46:52

apt家族有一个名为apt文件的应用程序。使用此应用程序,您可以通过文件名进行搜索,它将返回提供搜索文件的包(或包)。

您可以使用apt-get install apt-file安装它,然后执行apt-file update。之后,您可以使用apt-file search tcl.h搜索您的文件。对于我(这里是Debian 9),结果(列表很长,我在这里删掉):

代码语言:javascript
复制
...
tcl8.5-dev: /usr/include/tcl8.5/tcl-private/generic/tcl.h
tcl8.5-dev: /usr/include/tcl8.5/tcl.h
tcl8.6-dev: /usr/include/tcl8.6/tcl-private/generic/tcl.h
tcl8.6-dev: /usr/include/tcl8.6/tcl.h
tcllib: /usr/share/doc/tcllib/html/me_tcl.html
...

在我的系统中,我会安装一个包tcl8.5-dev或tcl8.6-dev。此外,可能需要指出库位于何处。通常,它是通过./配置脚本上的一个选项来完成的。尝试执行./configure --help | less以查找所有可用选项。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1134344

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档