无法在 Mac 上安装 tcl 的 udp 包

发布于 2024-11-09 03:43:52 字数 1600 浏览 0 评论 0 原文

我正在尝试运行 gpsfeed+ 来测试我正在编写的应用程序,并且在运行 gpsfeed+ 时.tcl,我收到一条信息,

Error in startup script: can't find package udp
    while executing
"package req udp"
    (file "gpsfeed+.tcl" line 738)

似乎没有可用于下载和安装 udp 包的说明/帮助..
有谁有直接的方法将此包添加到 tcl 吗?

(我使用的是 osx 10.6.7,并且在 /opt/local/lib/tcl8.5/ 中安装了 tcl8.5)

谢谢,


EDIT: Solution (Thanks, Donal)

  1. 我下载了 ActiveTcl,并安装它(双击)。
  2. ActiveTcl安装teacup,应该更新:sudo teacup update-self
  3. sudo teacup install udp找到并安装了udp包 <块引用>

    正在解析 udp ... [package udp 1.0.9 macosx10.5-i386-x86_64 @ http://teapot .activestate.com]
    正在解析 Tcl 8.4 -is package ... [package Tcl 8.5.9 _ ... 安装在存储库外部,探测依赖项]
    正在检索包 udp 1.0.9 macosx10.5-i386-x86_64 ...@ http://teapot.activestate.com ... 好的
    安装到 /Library/Tcl/teapot
    安装包 udp 1.0.9 macosx10.5-i386-x86_64

  4. 现在,要么更改 ActiveTcl tclsh 版本的路径,要么显式运行它
    /usr/local/bin/tclsh8.5 gpsfeed+.tcl 工作,并且找到 udp 库。

现在,我所需要的只是有人将其重写以使其清晰易读! ;) gpsfeed+ 配置选项

I'm trying to run gpsfeed+ to test an app I'm writing, and when running gpsfeed+.tcl, I get a

Error in startup script: can't find package udp
    while executing
"package req udp"
    (file "gpsfeed+.tcl" line 738)

There seem to be no instructions/help available for downloading and installing the udp package..
Does anyone have a straight-forward method for adding this package to tcl?

(I'm on osx 10.6.7, and have tcl8.5 installed in /opt/local/lib/tcl8.5/)

Thanks


EDIT: Solution (Thanks, Donal)

  1. I downloaded ActiveTcl, and installed it (Double-click).
  2. ActiveTcl installs teacup, which should be updated: sudo teacup update-self
  3. sudo teacup install udp found and installed the udp package

    Resolving udp ... [package udp 1.0.9 macosx10.5-i386-x86_64 @ http://teapot.activestate.com]
    Resolving Tcl 8.4 -is package ... [package Tcl 8.5.9 _ ... Installed outside repository, probing dependencies]
    Retrieving package udp 1.0.9 macosx10.5-i386-x86_64 ...@ http://teapot.activestate.com ... Ok
    Installing into /Library/Tcl/teapot
    Installing package udp 1.0.9 macosx10.5-i386-x86_64

  4. Now, either changing the path for the ActiveTcl tclsh version, or running it explicitly
    /usr/local/bin/tclsh8.5 gpsfeed+.tcl works, and the udp library is found.

Now, all I need is someone to rewrite it to be legible! ;)
gpsfeed+ configuration options

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

攀登最高峰 2024-11-16 03:43:52

我在 OSX 上使用 ActiveTcl 。虽然我不记得 udp 包是否是默认下载的一部分,或者您是否必须在安装后使用 teacup update 来拉取它,但我知道 ActiveState 大多数当然要分发该包以与他们的发行版一起使用。

如果您直接构建,TclUDP Wiki 页面 指向获取源代码的位置以及如何使用它(如果您需要的话)。安装包的目录需要位于 auto_path 全局变量中的位置列表中。从 Tcl 安装路径中已列出的位置中选择安装位置,或者lappend 将 TclUDP 放置在脚本开头的位置。 gpsfeed+ 代码可能有一些代码允许您指定包安装位置而无需编辑其代码,但我不知道,所以如果没有更多的研究,我无法确定。

I use ActiveTcl on OSX. While I can't remember if the udp package is part of the default download or if you have to use teacup update to pull it in after installation, I know that ActiveState most certainly distribute the package for use with their distribution.

If you're building directly, the TclUDP Wiki page points to where to get the source code from as well as how to use it (if you need that). The directory where you install the package needs to be on the list of places in the auto_path global variable. Either pick the installation location from a place already listed on that path in your installation of Tcl, or lappend the location where you put TclUDP at the start of the script. The gpsfeed+ code might have some code to allow you to specify package installation locations without editing its code, but I don't know it so I can't say for sure without quite a bit more research.

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