Tcl.h:没有这样的文件或目录 [英] Tcl.h: no such file or directory

查看:2367
本文介绍了Tcl.h:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将一些代码从Solaris盒中移植到Linux(特别是Redhat)框。代码编译没有问题,在Solaris盒子上运行没有问题。

I'm trying to port some code over from a Solaris box onto a Linux (specifically Redhat) box. Code compiled without issues and ran without issues on the Solaris box.

但是,在Linux上重新编译时,我遇到了一个问题tcl.h - 编译器告诉我错误:tcl.h:没有这样的文件或目录多个文件 #includetcl.h

However, in recompiling on Linux, I'm running into an issue with tcl.h - the compiler is telling me that error: tcl.h: No such file or directory for multiple files that #include "tcl.h".

据我所知,tcl8.4& tk8.4已安装:

As far as I can tell, both tcl8.4 & tk8.4 are installed:


  • /usr/lib/tcl8.4

  • / usr / share / tcl8.4

  • /usr/lib/tk8.4

  • /usr/share/tk8.4

  • /usr/lib/tcl8.4
  • /usr/share/tcl8.4
  • /usr/lib/tk8.4
  • /usr/share/tk8.4

但是,我在任何地方找不到tcl.h。有谁知道它在哪里?或者是Solaris需要的那些文件之一,但是不需要包括Linux?或者甚至我需要安装除了tcl / tk之外的东西8.4?

However, I can't find tcl.h anywhere. Does anyone know where it would be? Or is it one of those files that Solaris needed, but Linux does not need to be included? Or even do I need to install something in addition to tcl/tk 8.4?

推荐答案

听起来你没有tcl安装的开发文件(库通常单独从头文件打包)。尝试:

It sounds like you don't have the development files for tcl installed (libraries are usually packaged separately from headers). Try:

$ rpm -qa | grep tcl

如果没有,请找到要安装的-devel软件包。如果是,它可能在编译器不包括的目录中。如果它安装,你应该能够找到rpm文件(我认为选项是 -ql< packagename>

If it's not there, find the -devel package to install. If it is, it may be in a directory that the compiler isn't including. If it is installed, you should be able to find the file with rpm (I think the option is -ql <packagename>)

这篇关于Tcl.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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