计划';tclsh';是否当前未安装?
我正在尝试在我的ubuntu16.04机器上安装tcl/tk8.4版本。完成apt get install命令后。如果我键入tclsh命令。我收到的错误消息是:程序“tclsh”当前未安装。您可以通过键入来安装它。sudoatp获得安装tcl计划';tclsh';是否当前未安装?,tcl,ubuntu-16.04,tk,Tcl,Ubuntu 16.04,Tk,我正在尝试在我的ubuntu16.04机器上安装tcl/tk8.4版本。完成apt get install命令后。如果我键入tclsh命令。我收到的错误消息是:程序“tclsh”当前未安装。您可以通过键入来安装它。sudoatp获得安装tcl The steps followed are as follows: 1. I have removed the latest tcl/tk8.6, using autoremove commands 2.dccom@dccom-vm:~$ su
The steps followed are as follows:
1. I have removed the latest tcl/tk8.6, using autoremove commands
2.dccom@dccom-vm:~$ 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:
dccom@dccom-vm:~$ tclsh
The program 'tclsh' is currently not installed. You can install it by
typing:
sudo apt install tcl
我需要在这里设置任何环境变量吗?请建议 默认情况下,
tclsh
程序将以名称tclsh8.4
安装;使用tclsh8.4中的查找它的实际位置。这使得在一个系统上使用多个版本的Tcl变得更加容易。但是,如果要将其设为默认值,则应使用。尝试键入以下内容(在root提示符下或通过sudo
):
对于wish
(默认情况下安装为wish8.4
),您可能还需要类似的东西。您为什么要降级到8.4?与其他语言不同,Tcl非常兼容。您可以在8.6上运行tcl 7.0程序,而不会出现任何问题。无论如何,最新版本的bash缓存将指向可执行文件的路径。通常您只需关闭终端并打开另一个终端即可解决此问题。@slebetman:是的,我必须安装spirent测试中心linux env,它支持tcl 8.4到8.5.14的较低版本。它在STC规范中提到。谢谢,我发现了这个问题。对于TCL4.8,我们需要在/usr/bin/中创建一些到tclsh的软链接。我错过了。。现在工作正常了。。
update-alternatives --config tclsh