[vtkusers] can't find package vtk while executing a .tcl file

Wes Turner wes.turner at kitware.com
Wed Sep 17 13:44:48 EDT 2008


You can also set the environment variable TCLLIBPATH to the location of the
pkgIndex.tcl file prior to executing the tcl file.

- Wes

On Wed, Sep 17, 2008 at 12:51 PM, Peter Wainwright <
prw at ceiriog.eclipse.co.uk> wrote:

> On Wed, 2008-09-17 at 06:27 -0500, Hua-Mei Chen wrote:
> > Hi,
> >
> >     I am new to this mailing list and have a very basic question that
> > probably has been asked before. But, how do I modify a .tcl file such
> > that it can be executed without any error like "can't find package vtk
> > while executing "package require VTK" "?  In other word, I think my
> > question is how to set path in a .tcl file. Thank you.
>
> I think you need to modify the variable "auto_path".  If you execute
> "puts $auto_path" in tclsh, you will see the default value, for me it is
>
> % puts $auto_path
> /usr/share/tcltk/tcl8.4 /usr/lib /usr/local/lib/tcltk
> /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk
>
> Just add the path to the directory which contains the pkgIndex.tcl file
> for VTK, e.g.
>
> set auto_path "$auto_path /xxxxxx/lib/vtk-5.2"
>
> Peter
>
> >
> >
> > Chen
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Wesley D. Turner, Ph.D.
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x120
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080917/fa6d7186/attachment.htm>


More information about the vtkusers mailing list