Is there any utility for me to compile or encrypt the code by using tixwish?
The following is the simple code if I use the tixwish:
#!/home/albertl/local/bin/tixwish
puts "haha"
And after using procomp by the TclPro1.5
Error in startup script: The TclPro ByteCode Loader is not available or does not support the correct version
while executing
"error "The TclPro ByteCode Loader is not available or does not support the correct version""
invoked from within
"if {[catch {package require tbcload 1.3} err] == 1} {
error "The TclPro ByteCode Loader is not available or does not support the correct version"
..."
(file "a.tbc" line 4)
The problem seems that tbcload1.3 cannot be found?
But tbcload is already there "/home/albertl/local/lib/tbcload1.3"
Why?
Can anyone tell me?
You might have success with freewrap or TDK, don't know for sure.
Michael
A plain tclsh, wish or what other interpreter you use, cannot understand
the serialisation of bytecodes generated by TclPro. You need a package
for doing this, and this package is named tbcload.
You have two options:
a) Install and unse under Solaris ActiveTcl. ActiveTcl includes the
latest tbcload package binaries.
or
b) Find the latest tbcload sources and compile it yourself.
For a few links, you can try http://wiki.tcl.tk/2624.
My suggestion is however to buy TclDevKit, which will produce much more
better bytecodes, and will compile also code for tcl 8.4 & 8.5, that the
old (but free) TclPro cannot handle...
Unless you don't use the new features :-)
George
O/H stratus έγραψε: