Tcl Dev Kit:找不到包 starkit
我无法使用 TclDevKit5.2 包装最简单的 TCL 应用程序。
我在 64 位 CentOS 上,这里 wat uname -a
返回:
Linux hp1 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
当输入:(
/opt/TclDevKit-5.2/bin/tclapp -out wrap empty.tcl
这里empty.tcl 是一个空文件)时,它会生成 ./wrap
可执行文件,但是当尝试运行 ./wrap
时,它会报告以下内容:
can't find package starkit
while executing
"package require starkit"
(file "./wrap" line 5)
这是 ./wrap
的第一行:
#!/bin/sh
# \
exec tclsh "$0" ${1+"$@"}
##
package require starkit
starkit::header mk4 -readonly
##
# here goes the binary executable ....
我做错了什么? starkit
软件包位于哪里?也许我必须在 add_path
中添加一些东西?
我正在使用 TclDevKit 的 21 天试用版,以下是生成 ./wrap
时报告的日志:
info | Tcl Dev Kit TclApp
info | Copyright (C) 2001-2010 ActiveState Software Inc. All rights reserved.
info | Licensed to Trial User (Trial license, serial number *6928738*).
info |
info | Embedding license information into wrap result as comments.
info |
info | Expires: 18-11-2010.
info |
info | WARNING: All applications generated by this trial version
info | will also stop working on 18-11-2010.
info Expanding...
info Following only profile dependencies
info
info Issues...
info
notice Packages ...
notice * No packages
info Inserting "tclsh" into starkit header.
info Inserting "-readonly" into starkit header.
info Inserting TEApot metadata
info Nothing to insert
info
notice Extending the list of provided packages
info
info F 0B /home/vminasyan/workspace/tests/TclDevKit/empty.tcl
info
info Generated wrap
I am not able to wrap the most simple TCL application using TclDevKit5.2.
I on 64 bit CentOS, and here wat uname -a
returns:
Linux hp1 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
When typing:
/opt/TclDevKit-5.2/bin/tclapp -out wrap empty.tcl
(here empty.tcl is an empty file) it generates the ./wrap
executable, however when trying to run ./wrap
, it reports this:
can't find package starkit
while executing
"package require starkit"
(file "./wrap" line 5)
Here are the first lines of ./wrap
:
#!/bin/sh
# \
exec tclsh "$0" ${1+"$@"}
##
package require starkit
starkit::header mk4 -readonly
##
# here goes the binary executable ....
What am i doing wrong? Where the starkit
package is located? Maybe I have to add something to the add_path
?
I am using the 21 days trial version of TclDevKit, and here is the log it reported while generating ./wrap
:
info | Tcl Dev Kit TclApp
info | Copyright (C) 2001-2010 ActiveState Software Inc. All rights reserved.
info | Licensed to Trial User (Trial license, serial number *6928738*).
info |
info | Embedding license information into wrap result as comments.
info |
info | Expires: 18-11-2010.
info |
info | WARNING: All applications generated by this trial version
info | will also stop working on 18-11-2010.
info Expanding...
info Following only profile dependencies
info
info Issues...
info
notice Packages ...
notice * No packages
info Inserting "tclsh" into starkit header.
info Inserting "-readonly" into starkit header.
info Inserting TEApot metadata
info Nothing to insert
info
notice Extending the list of provided packages
info
info F 0B /home/vminasyan/workspace/tests/TclDevKit/empty.tcl
info
info Generated wrap
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有测试过,但我认为您缺少前缀参数
,因此您的命令应该是这样的:
无论如何,我建议您使用项目文件。您可以在不带任何参数的情况下执行
tclapp
创建它(注意:您需要一个图形环境)I haven't test, but I think you are missing the prefix argument
so your command should be something like this:
Anyway I recommend you to use a project file. You can create it executing
tclapp
without any argument (note: you'll need a Graphic Enviorment)