我試圖使用TCL的樹形包,但我找不到任何文檔。當試圖從http://tcllib.sourceforge.net/doc/struct_tree.html運行的例子,我得到的錯誤tcl錯誤「can not find struct struct :: tree」
can't find package struct::tree
誰能告訴我怎麼把它列入TCL 8.5?
我試圖使用TCL的樹形包,但我找不到任何文檔。當試圖從http://tcllib.sourceforge.net/doc/struct_tree.html運行的例子,我得到的錯誤tcl錯誤「can not find struct struct :: tree」
can't find package struct::tree
誰能告訴我怎麼把它列入TCL 8.5?
struct::tree
程序包是Tcllib的一部分。
如果您使用的是ActiveTcl,則執行teacup update
(可能具有提升的權限,具體取決於您安裝的方式)將下載副本。我不知道是否所有Linux都將Tcllib作爲適當的系統包完成,但是Debian does。否則,在Tcllib主頁上有一個下載鏈接; Tcllib在您的應用程序代碼中包含的一批.tcl
文件中工作得很好。
即時通訊使用Ubuntu。這是否意味着我可以在我的其他代碼中包含tree.tcl? –
明白了!我從突觸中安裝了tcllib,它工作正常。 –
你做了「包需要struct :: tree」嗎? – TrojanName
是的,我做到了。我安裝了tcllib,它現在工作正常 –