Tcl Dev Kit:找不到包 starkit

发布于 2024-09-29 05:07:50 字数 1978 浏览 0 评论 0原文

我无法使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云淡月浅 2024-10-06 05:07:50

我没有测试过,但我认为您缺少前缀参数

-prefix /TclDevKit/bin/base-tk-<whatever-your-platform>

,因此您的命令应该是这样的:

/opt/TclDevKit-5.2/bin/tclapp -prefix /TclDevKit/bin/base-tk-<whatever-your-platform> -out wrap empty.tcl

无论如何,我建议您使用项目文件。您可以在不带任何参数的情况下执行 tclapp 创建它(注意:您需要一个图形环境)

I haven't test, but I think you are missing the prefix argument

-prefix /TclDevKit/bin/base-tk-<whatever-your-platform>

so your command should be something like this:

/opt/TclDevKit-5.2/bin/tclapp -prefix /TclDevKit/bin/base-tk-<whatever-your-platform> -out wrap empty.tcl

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文