Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to install a program but it always fails. When I try package require XXX, it return "can't find package XXX". I have a folder with the setup files in it, among which there is a pkgIndex.tcl, I have been looking online about package and pkgIndex.tcl but I cannot find any clear explanation. All this is a bit confusing for me...

share|improve this question
What is the package name? – Mikel Aug 8 '12 at 3:15

The folder with the pkgIndex file, is that directory in the auto_path?

lappend auto_path /my/folder
package require xyz

See the tutorial chapter on packages and the wiki page http://wiki.tcl.tk/auto_path

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.