代码之家  ›  专栏  ›  技术社区  ›  Vahagn

tcl dev kit:找不到软件包starkit

  •  1
  • Vahagn  · 技术社区  · 14 年前

    我无法使用包装最简单的TCL应用程序 TclDevKit5.2 .

    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
    

    ./wrap

    can't find package starkit
        while executing
    "package require starkit"
        (file "./wrap" line 5)
    

    #!/bin/sh
    # \
    exec tclsh "$0" ${1+"$@"}
    ##
    package require starkit
    starkit::header mk4 -readonly
    ##
    # here goes the binary executable ....
    

    starkit add_path

    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
    
    1 回复  |  直到 14 年前
        1
  •  1
  •   Carlos Tasada    14 年前

    我没有测试,但我想你缺少前缀参数了

    -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 没有任何参数(注意:你需要一个图形环境)