没有包 Thread,但 tcl_platform(threaded) 为 true
我已经安装了 Tcl8.5(debian 软件包)。
我需要线程库。当我执行package require Thread
时,它无法找到该包。但是,tcl_platform(threaded)
设置为 true。
为什么会这样呢?我需要再拿一个包裹吗?我有tcllib。
I've got Tcl8.5 installed (debian package).
I need the Thread library. When I do a package require Thread
, it fails to find the package. However, tcl_platform(threaded)
is set to true.
Why is this the case? Do I need to grab another package? I have tcllib.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果package require Thread没有找到Thread包,那么它要么没有安装,要么位于错误的位置。我认为 tcl_platform(threaded) 为 true 只是意味着 tclsh 是使用线程支持构建的,并且将支持 Threads 包。
查看 TCL lib 目录中是否有一个名为 threadx.xx 的子目录。如果没有,则需要下载 Threads 包。
If package require Thread isn't finding the Thread package then it either isn't installed or it is in the wrong place. I think that tcl_platform(threaded) being true just implies that tclsh has been built with threading support and will support the Threads package.
Have a look in the TCL lib directyory for a subdirectory called something like threadx.x.x. If you don't have one then you do need to download the Threads package.