2017-04-10 12 views
0

내 ubuntu16.04 시스템에 tcl/tk8.4 버전을 설치하려고합니다. apt-get install 명령을 완료 한 후. 내가 tclsh 명령을 입력하면. 이 오류 메시지는 다음과 같이 말합니다. 'tclsh'프로그램이 현재 설치되지 않았습니다. 입력하여 설치할 수 있습니다. sudo atp-get 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 

여기서 환경 변수를 설정해야합니까? 제발 제안 해주세요.

+0

8.4로 다운 그레이드하려는 이유가 무엇입니까? Tcl은 다른 언어와 달리 매우 호환성이 있습니다. 8.6에서 tcl 7.0 프로그램을 아무 문제없이 실행할 수 있습니다. 어쨌든 최근 버전의 bash 캐시는 실행 파일에 대한 경로입니다. 일반적으로이 문제를 해결하려면 터미널을 닫고 다른 터미널을 열면됩니다. – slebetman

+0

@slebetman : 네, spirent test center linux env를 설치해야합니다. tv 8.4 ~ 8.5.14의 하위 버전을 지원합니다. STC 사양에 언급되어 있습니다. –

답변

0

tclsh 프로그램은 기본적으로 tclsh8.4이라는 이름으로 설치됩니다. which tclsh8.4을 사용하여 실제 위치를 찾으십시오. 따라서 하나의 시스템에서 여러 버전의 Tcl을 사용하는 것이 훨씬 쉬워집니다. 그러나 기본값으로 설정하려면 update-alternatives을 사용해야합니다. 이 (루트 프롬프트에서 또는 sudo를 통해)를 입력하십시오 :

update-alternatives --config tclsh 

는 또한 (기본적으로 wish8.4 설치됩니다) wish에 대한 비슷한 일을해야 할 수도 있습니다.

+0

감사합니다. 문제를 발견했습니다. tcl 4.8의 경우/usr/bin /에 tclsh에 대한 소프트 링크를 만들어야합니다. 나는 그것을 놓쳤다. .. 그 지금 일하는 것은 멋지다. –