Ask Ubuntu Asked by Goncalo on December 11, 2020
I’m trying to install something using the ‘make’ command, however it gives me the fatal error:tcl.h no such file or directory. I’m new to linux, can anyone help me?
Once you have a Tcl dev package installed, you'll then possibly come across the code expecting tcl.h to be in /usr/include/
, but in order to facilitate multiple versions of Tcl being installed, Ubuntu places tcl.h in /usr/include/tcl/
- note the extra directory level.
Replacing: #include <tcl.h>
with #include <tcl/tcl.h>
in the source code you're trying to build should get around this.
Answered by Jonathan Sambrook on December 11, 2020
This means you're missing the tcl development files. The easiest way to check is to go to: http://packages.ubuntu.com/ and put "tcl.h" in the "search contents of packages" field. If you do this you'll find that tcl.h can be found in a number of packages you'll want to install one of those:
sudo apt-get install tcl8.6-dev
Answered by labarna on December 11, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP