无法使用包 - windows & tcllib1.20 上的 TCL 9.0

Unable to use package - TCL 9.0 on windows & tcllib1.20

你好,抱歉我的英语不好,

我用 visual studio 2019 在 windows 10 下从源代码编译了 TCL,它在目录中:

F:\Developpement\TCL\tcl

当我输入 puts $tcl_version 时,版本似乎是 9.0 我得到:

9.0

但是很奇怪,因为我下载的源是tcl8610-src ...

之后,我使用提供的 installer.tcl 文件安装了 tcllib1.20。现在我的目录 F:\Developpement\TCL\tcl\lib 看起来像:

在目录 F:\Developpement\TCL\tcl\lib\tcllib1.20 中,我有 pkgIndex.tcl 文件:https://drive.google.com/file/d/1CCUbPhtHV5ISSsFUVNrv7zwdBciNFe4e/view?usp=sharing

当我在 windows 下启动 tclsh.exe 并使用命令 package require sha256 时,出现错误:

can't find package sha256

正如我的 auto_path 一样,我不知道查找包的过程是否是递归的:

F:/Developpement/TCL/tcl/lib/tcl9.0 F:/Developpement/TCL/tcl/lib

我试图通过 set auto_path [linsert $auto_path 0 F:/Developpement/TCL/tcl/lib/tcllib1.20] 将目录 F:/Developpement/TCL/tcl/lib/tcllib1.20 插入我的 auto_path 我得到了:

F:/Developpement/TCL/tcl/lib/tcllib1.20 F:/Developpement/TCL/tcl/lib/tcl9.0 F:/Developpement/TCL/tcl/lib

所以我认为这似乎是正确的...

但是如果我再试一次package require sha256我仍然得到同样的错误:

can't find package sha256

我在论坛上找了几个小时,但没有解决我的问题...如果有人能帮助我...?

非常感谢!

好的,现在可以使用了,我安装了 TCL 8.6.10,当输入“puts tcl_version”时我得到了 8.6 版本。 我还将“/module”添加到目录路径中。

非常感谢。