Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.