[TDK] Problem with tclapp and LD_LIBRARY_PATH
by asilver other posts by this author
Mar 26 2009 11:32AM messages near this date
view in the new Beta List Site
Re: [TDK] Setting auto load path in debugger.
|
Re: [TDK] Problem with tclapp and LD_LIBRARY_PATH
Hello,
I'm trying to create a starkit using Spirent's TestCenter Automation
package. I trying to reference Spirent's package external to the
interpreter I'm using.
Running the script without a starkit requires the LD_LIBRARY_PATH variable
to be set as follows:
LD_LIBRARY_PATH=/usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linux
Running the script normally without a starkit, works fine.
My first attempt at creating the starkit resulting in an error message
saying the "stc package" could not located. To fix that problem, I added
to the auto_path variable inside the application.
lappend auto_path [file nativename /usr/local/ActiveTcl/lib/stc2.20]
package require -exact stc 2.20
Now the package can be found but there is still an error when the package
is attempted to be loaded. I've included the error message below. This
is running on RedHat Linux using TDK 3.2. I also tried setting the
LD_LIBRARY_PATH variable inside the application, right before the package
require command but that didn't have any effect.
set env (LD_LIBRARY_PATH)
"/usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linux"
Error when script is run......
Error Occured while loading the Spirent Automation Internal Utility
Library (couldn't load file
"/usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linux/libsTcl.so":
/usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linux/libsTcl.so:
undefined symbol: Tcl_DeleteInterp).
invalid command name "stc_int::salGet"
while executing
"stc_int::salGet $handle $args "
(procedure "stc::get" line 2)
invoked from within ......
Thanks
Al Silverstein
_______________________________________________
TDK mailing list
TDK@[...].com
http://listserv.ActiveState.com/mailman/listinfo/tdk
Thread:
asilver
Andreas Kupries
|