[vtkusers] One question on Tcl

Sawsan Ahmed sawsanahm at yahoo.com
Sun Jan 14 10:12:06 EST 2007


Hello Friends,

             I can run tcl scripts from bin directory
in my linux box.In my .bash_profile,I have set the
following environment variables:

VTK_DATA_ROOT="/usr/local/share/VTKData"
PATH=$PATH:$HOME/bin:/usr/local/src/VTK/VTK/VTK-build/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/src/VTK/VTK/VTK-build/bin
TCLLIBPATH=$TCLLIBPATH:/usr/local/src/VTK/VTK/VTK/Wrapping/Tcl
export VTK_DATA_ROOT PATH LD_LIBRARY_PATH TCLLIBPATH

But when I try to run tcl scripts from Examples
directory,I get the following error message:

------------------------------------------------------------
vtk Medical1.tcl
Error in startup script: The Tcl interpreter was
probably not able to find the VTK packages.  Please
check that your TCLLIBPATH environment variable
includes the path to your VTK Tcl directory.  You
might find it under your VTK binary directory in
Wrapping/Tcl, or under your site-specific installation
directory.  The TCLLIBPATH current value is:
:/usr/local/src/VTK/VTK/VTK/Wrapping/Tcl.  The
TCLLIBPATH variable is a set of space separated paths
(hence, path containing spaces should be surrounded by
quotes first). Windows users should use forward
(Unix-style) slashes '/' instead of the usual backward
slashes.  More informations can be found in the
Wrapping/Tcl/README source file (also available online
at
http://www.vtk.org/cgi-bin/cvsweb.cgi/~checkout~/VTK/Wrapping/Tcl/README).
can't find package vtk
    while executing
"package.orig require vtk"
    ("eval" body line 1)
    invoked from within
"eval package.orig $args"
    (procedure "package" line 2)
    invoked from within
"package require vtk"
    (file "Medical1.tcl" line 1)
------------------------------------------------------
---------------------------------------------------

2. I think I have set the correct TCLLIBPATH as
mentioned in the document.Why still I am getting the
error?Could anyone help me to figure out the problem?

regards,
Sawsan.




 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites
to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097


 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 



More information about the vtkusers mailing list