Find TCL headers and libraries in Debian and FreeBSD

Problem. You want to compile a software against TCL. You run ./configure, but it can’t find it. You so need to locate where are the headers and the libraries.

Solution.

Start with the TCL version.

On Debian:

  • headers are in a subdirectory in /usr/include, named tcl followed by the version
  • libraries are sorted by architecture, dpkg-architecture can give the right one.

On FreeBSD:

  • headers are also in a subdirectory in /usr/local/include, also named tcl followed by the version
  • libraries are in /usr/local/lib at expected place, but named by the version without any dot (e.g. libtcl86 for TCL 8.6).

Here a sample from a build script we use on Eglide:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.