我想在我的ubuntu16.04機器上安裝tcl/tk8.4版本。完成apt-get install命令後。如果我輸入tclsh命令。我得到這個錯誤消息說:程序'tclsh'目前沒有安裝。您可以通過鍵入來安裝它。 sudo atp-get install tcl。程序'tclsh'目前沒有安裝?
The steps followed are as follows:
1. I have removed the latest tcl/tk8.6, using autoremove commands
[email protected]:~$ sudo apt-get install tk8.4 tcl8.4
[sudo] password for dccom:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libtk8.4
Suggested packages:
tcl-tclreadline
The following NEW packages will be installed:
libtk8.4 tcl8.4 tk8.4
0 upgraded, 3 newly installed, 0 to remove and 350 not upgraded.
Need to get 567 kB/581 kB of archives.
After this operation, 1.858 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://id.archive.ubuntu.com/ubuntu xenial/universe i386 libtk8.4
i386 8.4.20-8 [556 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu xenial/universe i386 tk8.4 i386
8.4.20-8 [11,5 kB]
Fetched 567 kB in 1s (331 kB/s)
Selecting previously unselected package libtk8.4:i386.
(Reading database ... 276714 files and directories currently installed.)
Preparing to unpack .../libtk8.4_8.4.20-8_i386.deb ...
Unpacking libtk8.4:i386 (8.4.20-8) ...
Selecting previously unselected package tcl8.4.
Preparing to unpack .../tcl8.4_8.4.20-8_i386.deb ...
Unpacking tcl8.4 (8.4.20-8) ...
Selecting previously unselected package tk8.4.
Preparing to unpack .../tk8.4_8.4.20-8_i386.deb ...
Unpacking tk8.4 (8.4.20-8) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libtk8.4:i386 (8.4.20-8) ...
Setting up tcl8.4 (8.4.20-8) ...
Setting up tk8.4 (8.4.20-8) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Error info:
[email protected]:~$ tclsh
The program 'tclsh' is currently not installed. You can install it by
typing:
sudo apt install tcl
我需要在這裏設置任何環境變量嗎?請建議。
你想降級到8.4的任何原因?與其他語言不同,Tcl非常兼容。您可以在8.6上運行tcl 7.0程序而不會出現問題。無論如何,可執行文件的最新版本的bash緩存路徑。通常你只需要關閉你的終端並打開另一個終端來解決這個問題。 – slebetman
@slebetman:是的,我必須安裝思博倫測試中心linux env,它支持較低版本的tcl 8.4到8.5.14。它在STC規範中提到。 –