Tcl 开发工具包 : can't find package starkit

标签 tcl centos starkit tcldevkit

我无法使用 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

最佳答案

我还没有测试,但我认为你缺少前缀参数

-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 创建它(注意:您需要一个图形环境)

关于Tcl 开发工具包 : can't find package starkit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4046104/

相关文章:

tcl - 有没有办法解开 Tclkit 打包的 exe?

tcl - 在 Windows 平台上创建 Tcl Starkit 的步骤

c - 如何将 void* 指针包装到 TCL 对象中

linux - 加载 libtdbcmysql1.0.0.so 失败

linux - 如何根据文件名中的模式将文件移动到特定目录?

java - 让 Java 程序写入 CentOS 7 终端

linux - tcl中如何改变目录文件的状态?

memory - 应该给 Tcl dict 什么值以获得最小内存?

linux - centos docker镜像在gitlab docker runner上不起作用