If you change the location of the script library directory (tcl8.5/
in your case), you need to tell the shared library part of Tcl where it is. You do this using the TCL_LIBRARY
environment variable, which if set should contain the absolute path that is the location of that directory (technically, the directory that contains init.tcl
).
In a normal installation of Tcl, the correct location of that directory is baked directly into the shared library, but when you move things round (or when you are running Tcl's make test
) the environment variable allows you to override.
You might wish to look into alternate packaging mechanisms; there have already been a few questions in the tcl tag on this matter (but the usual favorite — a starkit — is probably not suitable for your case given the fact that the program is mainly C++).