Tcl.h: no such file or directory

redhotspike picture redhotspike · Mar 12, 2013 · Viewed 15.2k times · Source

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.

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".

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

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?

Answer

Some programmer dude picture Some programmer dude · Mar 12, 2013

You need to install the development package to get the header files. Depending on your Linux distribution, look for packages named like tcl8.4-dev and tk8.4-dev.